We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada0a6b commit 7f5086cCopy full SHA for 7f5086c
1 file changed
src/SQLParser.php
@@ -1163,6 +1163,7 @@ function decode_value($token){
1163
'"' => '"',
1164
);
1165
$out = '';
1166
+ $q = $token[0];
1167
for ($i=1; $i<strlen($token)-1; $i++){
1168
if ($token[$i] == '\\'){
1169
if ($map[$token[$i+1]]){
@@ -1171,6 +1172,10 @@ function decode_value($token){
1171
1172
$out .= $token[$i+1];
1173
}
1174
$i++;
1175
+ }elseif ($token[$i] == $q && $token[$i+1] == $q){
1176
+ # quote doubling
1177
+ $out .= $q;
1178
+ $i++;
1179
}else{
1180
$out .= $token[$i];
1181
0 commit comments