Skip to content

Commit 95867b5

Browse files
committed
Fix types of product id and developer payload (INTEGER > TEXT)
1 parent 6e6d83d commit 95867b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AndroidBillingLibrary/src/net/robotmedia/billing/model/BillingDB.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected static final Transaction createTransaction(Cursor cursor) {
9292
return purchase;
9393
}
9494

95-
private class DatabaseHelper extends SQLiteOpenHelper {
95+
public static class DatabaseHelper extends SQLiteOpenHelper {
9696
public DatabaseHelper(Context context) {
9797
super(context, DATABASE_NAME, null, DATABASE_VERSION);
9898
}
@@ -105,10 +105,10 @@ public void onCreate(SQLiteDatabase db) {
105105
private void createTransactionsTable(SQLiteDatabase db) {
106106
db.execSQL("CREATE TABLE " + TABLE_TRANSACTIONS + "(" +
107107
COLUMN__ID + " TEXT PRIMARY KEY, " +
108-
COLUMN_PRODUCT_ID + " INTEGER, " +
108+
COLUMN_PRODUCT_ID + " TEXT, " +
109109
COLUMN_STATE + " TEXT, " +
110110
COLUMN_PURCHASE_TIME + " TEXT, " +
111-
COLUMN_DEVELOPER_PAYLOAD + " INTEGER, " +
111+
COLUMN_DEVELOPER_PAYLOAD + " TEXT, " +
112112
COLUMN_SIGNED_DATA + " TEXT," +
113113
COLUMN_SIGNATURE + " TEXT)");
114114
}

0 commit comments

Comments
 (0)