1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Fix copy/paste typo in the new sqlite3_expanded_sql() function.

FossilOrigin-Name: e7d18c70d2b8f09c9f5b978fe3d69d1088e42322
This commit is contained in:
mistachkin
2016-07-14 09:22:16 +00:00
parent c0e2203adb
commit 0129a54a16
3 changed files with 10 additions and 10 deletions

View File

@@ -83,8 +83,8 @@ const char *sqlite3_sql(sqlite3_stmt *pStmt){
*/
char *sqlite3_expanded_sql(sqlite3_stmt *pStmt){
Vdbe *p = (Vdbe *)pStmt;
return p ? sqlite3VdbeExpandSql(p, p->zSql) : 0;
if( p->zSql==0 ) return 0;
if( p==0 || p->zSql==0 ) return 0;
return sqlite3VdbeExpandSql(p, p->zSql);
}
/*