Lines Matching refs:prepare
2 MySQL PDO->prepare(), emulated PS
18 if (is_array($error_info) && isset($error_info['prepare']))
19 $stmt = @$db->prepare($query);
21 $stmt = $db->prepare($query);
23 if (is_array($error_info) && isset($error_info['prepare'])) {
26 if (isset($error_info['prepare']['sqlstate']) &&
27 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
28 printf("[%03d] prepare() - expecting SQLSTATE '%s' got '%s'\n",
29 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
33 if (isset($error_info['prepare']['mysql']) &&
34 ($error_info['prepare']['mysql'] !== $tmp[1])) {
35 printf("[%03d] prepare() - expecting MySQL Code '%s' got '%s'\n",
36 $offset, $error_info['prepare']['mysql'], $tmp[0]);
165 PDO::prepare(): Argument #1 ($query) must not be empty