Lines Matching refs:prepare
2 MySQL PDO->prepare(), native PS
20 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
21 $stmt = @$db->prepare($query);
23 $stmt = $db->prepare($query);
25 if (is_array($error_info) && isset($error_info['prepare'])) {
28 if (isset($error_info['prepare']['sqlstate']) &&
29 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
30 printf("[%03d] prepare() - expecting SQLSTATE '%s' got '%s'\n",
31 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
35 if (isset($error_info['prepare']['mysql']) &&
36 ($error_info['prepare']['mysql'] !== $tmp[1])) {
37 printf("[%03d] prepare() - expecting MySQL Code '%s' got '%s'\n",
38 $offset, $error_info['prepare']['mysql'], $tmp[0]);
104 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
348 PDO::prepare(): Argument #1 ($query) cannot be empty