tiny-db icon indicating copy to clipboard operation
tiny-db copied to clipboard

UPDATE Table having invalid ANTLR Parser logic

Open arjunsk opened this issue 3 years ago • 0 comments

There is an issue with the "where" condition for ANTLR Parser implementation.


tinysql> select A,B from T2;
+---+---------+
| A | B       |
+---+---------+
| 1 | 'Alice' |
| 2 | 'Bob'   |
+---+---------+

tinysql> update T2 SET A=1 where A=2;
1 row updated.
tinysql> select A,B from T2;
+---+---------+
| A | B       |
+---+---------+
| 1 | 'Alice' |
| 2 | 'Bob'   |
+---+---------+

arjunsk avatar Dec 18 '22 18:12 arjunsk