** This function is called to process SQL if the previous shell command ** was ".expert". It passes the SQL in the second argument directly to ** the sqlite3expert object. ** ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error ** code. In this case, (*pzErr) may be set to point to a buffer containing ** an English language error message. It is the responsibility of the ** caller to
| 13436 | ** caller to eventually free this buffer using sqlite3_free(). |
| 13437 | */ |
| 13438 | static int expertHandleSQL( |
| 13439 | ShellState *pState, |
| 13440 | const char *zSql, |
| 13441 | char **pzErr |
| 13442 | ){ |
| 13443 | assert( pState->expert.pExpert ); |
| 13444 | assert( pzErr==0 || *pzErr==0 ); |
| 13445 | return sqlite3_expert_sql(pState->expert.pExpert, zSql, pzErr); |
| 13446 | } |
| 13447 | |
| 13448 | /* |
| 13449 | ** This function is called either to silently clean up the object |
no test coverage detected