diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2007-05-28 23:43:24 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2007-05-28 23:43:24 +0000 |
commit | cbcb1840f32f4b3eff6c2165ecc6f4fac8746a4b (patch) | |
tree | 2e91d5ce8fb85831987bb50b54aa584c62704cad /ext/pdo_mysql | |
parent | 3821f0c45acc490e6b5d80494f74798049e9cd15 (diff) | |
download | php-git-cbcb1840f32f4b3eff6c2165ecc6f4fac8746a4b.tar.gz |
MFB
Diffstat (limited to 'ext/pdo_mysql')
-rwxr-xr-x | ext/pdo_mysql/mysql_statement.c | 1 |
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) { |