Skip to content

Commit

Permalink
Fix on scanTables method for identify class properties with special c…
Browse files Browse the repository at this point in the history
…hars
  • Loading branch information
PepeuCps committed Jul 25, 2013
1 parent 60511ee commit 77e14de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/com/the9tcat/hadi/DatabaseHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ private void scanTables(SQLiteDatabase db) {
List<String> newColumnsNames = new ArrayList<String>();
StringBuffer sb1 = new StringBuffer();
for (ColumnAttribute col : newColumns) {
if (!oldColumns.contains(col.name)) {
//Log.i(LogParams.LOGGING_TAG, "Existing columns: " + oldColumns.toString());
//Log.i(LogParams.LOGGING_TAG, "Column exists? " + col.name);
if (!oldColumns.contains(col.name.replace("[","").replace("]",""))) {
sb1.append(col.name);
sb1.append(" ");
sb1.append(col.type);
Expand Down

0 comments on commit 77e14de

Please sign in to comment.