| 4782 | } |
| 4783 | #ifdef SQLITE_ENABLE_NORMALIZE |
| 4784 | static int SQLITE_TCLAPI test_norm_sql( |
| 4785 | void * clientData, |
| 4786 | Tcl_Interp *interp, |
| 4787 | int objc, |
| 4788 | Tcl_Obj *CONST objv[] |
| 4789 | ){ |
| 4790 | sqlite3_stmt *pStmt; |
| 4791 | |
| 4792 | if( objc!=2 ){ |
| 4793 | Tcl_WrongNumArgs(interp, 1, objv, "STMT"); |
| 4794 | return TCL_ERROR; |
| 4795 | } |
| 4796 | |
| 4797 | if( getStmtPointer(interp, Tcl_GetString(objv[1]), &pStmt) ) return TCL_ERROR; |
| 4798 | Tcl_SetResult(interp, (char *)sqlite3_normalized_sql(pStmt), TCL_VOLATILE); |
| 4799 | return TCL_OK; |
| 4800 | } |
| 4801 | #endif /* SQLITE_ENABLE_NORMALIZE */ |
| 4802 | |
| 4803 | /* |
nothing calls this directly
no test coverage detected