Lines Matching refs:prepare
2 MySQL PDO->prepare(), native PS
17 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
18 $stmt = @$db->prepare($query);
20 $stmt = $db->prepare($query);
22 if (is_array($error_info) && isset($error_info['prepare'])) {
25 if (isset($error_info['prepare']['sqlstate']) &&
26 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
27 printf("[%03d] prepare() - expecting SQLSTATE '%s' got '%s'\n",
28 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
32 if (isset($error_info['prepare']['mysql']) &&
33 ($error_info['prepare']['mysql'] !== $tmp[1])) {
34 printf("[%03d] prepare() - expecting MySQL Code '%s' got '%s'\n",
35 $offset, $error_info['prepare']['mysql'], $tmp[0]);
99 prepex(3, $db, '', [], ['prepare' => ['sqlstate' => '42000']]);
158 PDO::prepare(): Argument #1 ($query) must not be empty