sgrodzicki / php-sql-parser

Automatically exported from code.google.com/p/php-sql-parser
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

problem with unary operator #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. define query "UPDATE t1 SET c1 = -c2"
2. subsequent parse and create will produce :
Fatal error: Uncaught exception 'UnableToCreateSQLException' with message 
'unknown [expr_type] = sign in "SET expression subtree" [2] ' in 
D:\ontwikkeling\www\SqlParser\src\builders\SetExpressionBuilder.php on line 93

What is the expected output? What do you see instead?
expected : "UPDATE t1 SET c1 = -c2"

What version of the product are you using? On what operating system?
checkout after r1086

Please provide any additional information below.
Query "UPDATE t1 SET c1 = 0-c2" runs fine

Original issue reported on code.google.com by Henk.Blo...@gmail.com on 24 Feb 2014 at 8:20

GoogleCodeExporter commented 8 years ago
Has been fixed in r1095.

Original comment by pho...@gmx.de on 25 Feb 2014 at 9:31