summaryrefslogtreecommitdiff
path: root/ext/pdo/pdo_stmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo/pdo_stmt.c')
-rwxr-xr-xext/pdo/pdo_stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 67c11f4755..a16b5c2365 100755
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -315,7 +315,8 @@ static PHP_METHOD(PDOStatement, execute)
}
}
- if (!stmt->dbh->supports_placeholders) {
+ /* TODO: handle the non-native types too... doh. */
+ if (PDO_PLACEHOLDER_NONE == stmt->supports_placeholders) {
int error_pos;
/* handle the emulated parameter binding,
* stmt->active_query_string holds the query with binds expanded and