summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-05-28 23:43:24 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-05-28 23:43:24 +0000
commitcbcb1840f32f4b3eff6c2165ecc6f4fac8746a4b (patch)
tree2e91d5ce8fb85831987bb50b54aa584c62704cad /ext/pdo_mysql
parent3821f0c45acc490e6b5d80494f74798049e9cd15 (diff)
downloadphp-git-cbcb1840f32f4b3eff6c2165ecc6f4fac8746a4b.tar.gz
MFB
Diffstat (limited to 'ext/pdo_mysql')
-rwxr-xr-xext/pdo_mysql/mysql_statement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index 86159d95ab..f0ff04dc92 100755
--- a/ext/pdo_mysql/mysql_statement.c
+++ b/ext/pdo_mysql/mysql_statement.c
@@ -363,6 +363,7 @@ static int pdo_mysql_stmt_fetch(pdo_stmt_t *stmt,
#endif
if (!S->result) {
+ strcpy(stmt->error_code, "HY000");
return 0;
}
if ((S->current_data = mysql_fetch_row(S->result)) == NULL) {