Skip to content

Commit

Permalink
Fix table query for table names starting with number.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Acosta committed May 4, 2017
1 parent c205bd9 commit 59fce55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private String getAllDataFromTheTableResponse(String route) {
TableDataResponse response;

if (isDbOpened) {
String sql = "SELECT * FROM " + tableName;
String sql = "SELECT * FROM [" + tableName + "]";
response = DatabaseHelper.getTableData(mDatabase, sql, tableName);
} else {
response = PrefHelper.getAllPrefData(mContext, tableName);
Expand Down

0 comments on commit 59fce55

Please sign in to comment.