(async() => {
let db = open({ name: 'test' });
await db.execute('SELECT 1 '); // No issue
await db.execute('SELECT 1 '); // No issue
await db.execute('SELECT 1; ', []); // Will show warning [op-sqlite] SQL execution error: not an error
await db.execute('SELECT ?; ', [1]); // Will crash the entire app immediately
})();
Test cases:
1) No issue will happen with single space without semicolon
2) No issue will happen with multiple spaces without semicolon
3) Will show warning when parameter is not used with semicolon + spaces behind semicolon
4) Will immediately crash app when parameter is used with semicolon + spaces behind semicolon
**I understand the spaces should not appear, but previous version is not that lenient and will not crash the app when some mistake like this is made.
Describe the bug
Test cases: 1) No issue will happen with single space without semicolon 2) No issue will happen with multiple spaces without semicolon 3) Will show warning when parameter is not used with semicolon + spaces behind semicolon 4) Will immediately crash app when parameter is used with semicolon + spaces behind semicolon
**I understand the spaces should not appear, but previous version is not that lenient and will not crash the app when some mistake like this is made.
Versions: