summaryrefslogtreecommitdiff
path: root/ext/pdo_firebird
diff options
context:
space:
mode:
authorPopa Adrian Marius <mariuz@php.net>2011-12-27 16:49:00 +0000
committerPopa Adrian Marius <mariuz@php.net>2011-12-27 16:49:00 +0000
commit5cad53802e472d31c1e4f1718711591129aedafa (patch)
tree7279e496be6c87ca62a95b40a4d04f1c6da4bc74 /ext/pdo_firebird
parent5e9cf83df700ce3b4ef904731a3bb3542ab6e2fa (diff)
downloadphp-git-5cad53802e472d31c1e4f1718711591129aedafa.tar.gz
http://gcov.php.net/viewer.php?version=PHP_5_3&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_43130.phpt
fix failure for bug 43130
Diffstat (limited to 'ext/pdo_firebird')
-rw-r--r--ext/pdo_firebird/firebird_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/pdo_firebird/firebird_driver.c b/ext/pdo_firebird/firebird_driver.c
index eb47934458..c2c20cf92c 100644
--- a/ext/pdo_firebird/firebird_driver.c
+++ b/ext/pdo_firebird/firebird_driver.c
@@ -440,8 +440,10 @@ static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, long sql
continue;
}
} else {
- if ((in_param &= (sql[l] == '_') || (sql[l] >= 'A' && sql[l] <= 'Z')
- || (sql[l] >= 'a' && sql[l] <= 'z') || (sql[l] >= '0' && sql[l] <= '9'))) {
+ if ((in_param &= ((sql[l] >= 'A' && sql[l] <= 'Z') || (sql[l] >= 'a' && sql[l] <= 'z')
+ || (sql[l] >= '0' && sql[l] <= '9') || sql[l] == '_' || sql[l] == '-'))) {
+
+
*ppname++ = sql[l];
continue;
} else {