Better handling of parenthesis inside string literals
When scanning for the matching parenthesis, string literals were not taken into account, which would inevitably lead to errors if one wanted to do a selection on a string containing a parenthesis. Now it uses a state-machine to skip the ones that are located inside literals.
This commit is contained in:
1
test/par1.query
Normal file
1
test/par1.query
Normal file
@@ -0,0 +1 @@
|
||||
σ name=='(' (people)
|
1
test/par1.result
Normal file
1
test/par1.result
Normal file
@@ -0,0 +1 @@
|
||||
id,name,chief,age
|
1
test/par2.query
Normal file
1
test/par2.query
Normal file
@@ -0,0 +1 @@
|
||||
σ (name=='(') (people)
|
1
test/par2.result
Normal file
1
test/par2.result
Normal file
@@ -0,0 +1 @@
|
||||
id,name,chief,age
|
1
test/par3.query
Normal file
1
test/par3.query
Normal file
@@ -0,0 +1 @@
|
||||
σ (name==')') (people)
|
1
test/par3.result
Normal file
1
test/par3.result
Normal file
@@ -0,0 +1 @@
|
||||
id,name,chief,age
|
1
test/par4.query
Normal file
1
test/par4.query
Normal file
@@ -0,0 +1 @@
|
||||
σ name==')' (people)
|
1
test/par4.result
Normal file
1
test/par4.result
Normal file
@@ -0,0 +1 @@
|
||||
id,name,chief,age
|
Reference in New Issue
Block a user