This is called at the time of put_prepared_stmt_int() * to determine whether the given sql should be cached. * We should not cache ddl stmts, analyze commands, * rebuild commands, truncate commands, explain commands. * Ddl stmts and explain commands should not get to * put_prepared_stmt_int() so are not handled in this function. * However, most of these cases are now handled via the custom
| 504 | * EXPLAIN case. |
| 505 | */ |
| 506 | static inline int dont_cache_this_sql(struct sql_state *rec) |
| 507 | { |
| 508 | return sqlite3_stmt_isexplain(rec->stmt); |
| 509 | } |
| 510 | |
| 511 | /* return code of 1 means we encountered an error and the caller |
| 512 | * needs to cleanup this rec->stmt */ |
no test coverage detected