| 872 | } |
| 873 | |
| 874 | Statement *find(ulong id) |
| 875 | { |
| 876 | if (last_found_statement == 0 || id != last_found_statement->id) |
| 877 | { |
| 878 | Statement *stmt; |
| 879 | stmt= (Statement *) my_hash_search(&st_hash, (uchar *) &id, sizeof(id)); |
| 880 | if (stmt && stmt->name.str) |
| 881 | return NULL; |
| 882 | last_found_statement= stmt; |
| 883 | } |
| 884 | return last_found_statement; |
| 885 | } |
| 886 | /* |
| 887 | Close all cursors of this connection that use tables of a storage |
| 888 | engine that has transaction-specific state and therefore can not |
nothing calls this directly
no test coverage detected