mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-02 05:54:29 +03:00
The sqlite3_expanded_sql() function compiles, but always returns NULL, when
the SQLITE_OMIT_TRACE compile-time option is used. FossilOrigin-Name: 53c25ebe34e6776a12260078852973b1d581d20f
This commit is contained in:
@@ -82,9 +82,13 @@ const char *sqlite3_sql(sqlite3_stmt *pStmt){
|
||||
** expanded bound parameters.
|
||||
*/
|
||||
char *sqlite3_expanded_sql(sqlite3_stmt *pStmt){
|
||||
#ifdef SQLITE_OMIT_TRACE
|
||||
return 0;
|
||||
#else
|
||||
Vdbe *p = (Vdbe *)pStmt;
|
||||
if( p==0 || p->zSql==0 ) return 0;
|
||||
return sqlite3VdbeExpandSql(p, p->zSql);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user