Lines Matching refs:prepare
2 MySQL PDO->prepare(), native PS
19 if ($suppress_warning || (is_array($error_info) && isset($error_info['prepare'])))
20 $stmt = @$db->prepare($query);
22 $stmt = $db->prepare($query);
24 if (is_array($error_info) && isset($error_info['prepare'])) {
27 if (isset($error_info['prepare']['sqlstate']) &&
28 ($error_info['prepare']['sqlstate'] !== $tmp[0])) {
29 printf("[%03d] prepare() - expecting SQLSTATE '%s' got '%s'\n",
30 $offset, $error_info['prepare']['sqlstate'], $tmp[0]);
34 if (isset($error_info['prepare']['mysql']) &&
35 ($error_info['prepare']['mysql'] !== $tmp[1])) {
36 printf("[%03d] prepare() - expecting MySQL Code '%s' got '%s'\n",
37 $offset, $error_info['prepare']['mysql'], $tmp[0]);
102 // TODO - that's PDO - you can prepare empty statements!
104 array(), array('prepare' => array('sqlstate' => '42000')));