Bug fix for DB\IO params detection
Param detection found too many params, for example '$1'. Fixed the regex to only allow params that are no preceeded by ' And must start with space/tab, =, (
This commit is contained in:
@@ -212,11 +212,11 @@ $query = <<<EOM
|
||||
INSERT INTO
|
||||
test_foo
|
||||
(
|
||||
test
|
||||
test, string_a
|
||||
) VALUES (
|
||||
$1
|
||||
$1, '$2'
|
||||
)
|
||||
RETURNING test
|
||||
RETURNING test, string_a
|
||||
EOM;
|
||||
$db->dbPrepare("ins_test_foo_eom", $query);
|
||||
$status = $db->dbExecute("ins_test_foo_eom", ['EOM BAR TEST ' . time()]);
|
||||
|
||||
Reference in New Issue
Block a user