1
0
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:
drh
2016-07-15 10:01:06 +00:00
parent 0e15d921d9
commit 8d85364261
5 changed files with 17 additions and 11 deletions

View File

@@ -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
}
/*