Skip to content

Commit 17a789e

Browse files
sim1984cmb69
authored andcommitted
Fix #64937: Firebird PDO preprocessing sql
This patch fixes some problems with preprocessing SQL queries. * The new algorithm takes into account single-line and multi-line comments and ignores the ":" and "?" Parameter markers in them. * The algorithm allows the EXECUTE BLOCK statement to be processed correctly. For this statement, it is necessary to search for parameter markers between EXECUTE BLOCK and AS, the rest should be left as is. The SQL preprocessing code has been ported from Firebird to handle EXECUTE STATEMENT. Closes GH-4920.
1 parent 3277cb6 commit 17a789e

File tree

4 files changed

+517
-35
lines changed

4 files changed

+517
-35
lines changed

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ PHP NEWS
44

55
- CLI:
66
. Allow debug server binding to an ephemeral port via `-S localhost:0`. (Sara)
7+
78
- Core:
89
. Fixed bug #80109 (Cannot skip arguments when extended debug is enabled).
910
(Nikita)
11+
12+
- PDO_Firebird:
13+
. Fixed bug #64937 (Firebird PDO preprocessing sql). (Simonov Denis)
14+
1015
- SPL:
1116
. SplFixedArray is now IteratorAggregate rather than Iterator. (alexdowad)
1217

0 commit comments

Comments
 (0)