2

My column name for the sqlite database is "name" but when I go to get data from the database the column name seems to be "nameTEXT" even though there's a space between name and TEXT in my SQL declaration for the table name.

EDIT-------

My Create Table statement is

String CREATE_INVENTORY_TABLE = "CREATE TABLE " + TABLE_INVENTORY + "(" + KEY_PD_NAME + " TEXT PRIMARY KEY," + KEY_PD_PRICE + " DECIMAL(10,2)," + KEY_PD_QUANTITY + " INTEGER" + ")";
   Log.d("SQL STATEMENT", CREATE_INVENTORY_TABLE);
    db.execSQL(CREATE_INVENTORY_TABLE);
DVNT
  • 61
  • 1
  • 8

1 Answers1

0

Deleted the old database files from the device and changed the onCreate method to use variables as column names and when I restarted the emulator the problem seemed to have gone away. Chalking this up to human error.

DVNT
  • 61
  • 1
  • 8