summaryrefslogtreecommitdiff
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
commitb3ecb6841c89c6d54b52a349990aab0bad1a2908 (patch)
treea007e14fd25a682fa0912a2470bd6b62432a7a95
parent4a59413e48f52ee9e0d45860fcfa78c8fed8a7a1 (diff)
downloadphp-git-b3ecb6841c89c6d54b52a349990aab0bad1a2908.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
-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 {