FLEXTool / FLEX

An in-app debugging and exploration tool for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unquoted table names causes issue when table has reserved sql keyword

mgray88 opened this issue · comments

Environment

  • Platform+version: iOS 14.x
  • FLEX version: 4.4.1

Bug Report

return [self executeStatement:[@"SELECT * FROM "
stringByAppendingString:tableName
]].rows ?: @[];

The name of my table is order, causing the following statement from my sql logging:
near "order": syntax error in "SELECT * FROM order"

The correct statement should read SELECT * FROM "order"