diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-08-28 16:53:27 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-08-28 16:53:27 +0000 |
commit | c6aae12cc16e79cbeb51032f5b2822d29410c142 (patch) | |
tree | 8d91708ece9721666e4db5dca50cd74f9fba48f9 /ext/pdo_sqlite/sqlite/src/attach.c | |
parent | 3a21310f37054961066eec5752775c173d1dc1d7 (diff) | |
download | php-git-c6aae12cc16e79cbeb51032f5b2822d29410c142.tar.gz |
Upgraded bundled SQLite library for PDO:SQLite to 3.2.5 (step 1)
Diffstat (limited to 'ext/pdo_sqlite/sqlite/src/attach.c')
-rw-r--r-- | ext/pdo_sqlite/sqlite/src/attach.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_sqlite/sqlite/src/attach.c b/ext/pdo_sqlite/sqlite/src/attach.c index 5c8953467c..46b653e975 100644 --- a/ext/pdo_sqlite/sqlite/src/attach.c +++ b/ext/pdo_sqlite/sqlite/src/attach.c @@ -146,8 +146,8 @@ void sqlite3Attach( db->aDb[i].pBt = 0; } sqlite3ResetInternalSchema(db, 0); - if( 0==pParse->nErr ){ - pParse->nErr++; + assert( pParse->nErr>0 ); /* Always set by sqlite3ReadSchema() */ + if( pParse->rc==SQLITE_OK ){ pParse->rc = SQLITE_ERROR; } } |