Lines Matching refs:code
43 $code = $db->errorCode();
46 if ($code != '42000')
47 printf("[005] Expecting SQL code 42000 got '%s'\n", $code);
48 if ($code !== $info[0])
50 $code, $info[0]);
52 printf("[007] Driver specific error code not set\n");
59 $code = $db->errorCode();
62 if ($code != '42000')
63 printf("[009] Expecting SQL code 42000 got '%s'\n", $code);
64 if ($code !== $info[0])
66 $code, $info[0]);
68 printf("[011] Driver specific error code not set\n");
78 $code = $db->errorCode();
81 if ($code != '42000')
82 printf("[013] Expecting SQL code 42000 got '%s'\n", $code);
83 if ($code !== $info[0])
85 $code, $info[0]);
87 printf("[015] Driver specific error code not set\n");
91 if ($e->getCode() !== $code)
92 printf("[017] Exception code '%s' differs from errorCode '%s'\n",
93 $e->getCode(), $code);
116 $code = $db->errorCode();
119 if ($code != '42000')
120 printf("[021] Expecting SQL code 42000 got '%s'\n", $code);
121 if ($code !== $info[0])
123 $code, $info[0]);
125 printf("[023] Driver specific error code not set\n");
129 if ($e->getCode() !== $code)
130 printf("[025] Exception code '%s' differs from errorCode '%s'\n",
131 $e->getCode(), $code);