Lines Matching refs:code
45 $code = $db->errorCode();
48 if ($code != '42000')
49 printf("[005] Expecting SQL code 42000 got '%s'\n", $code);
50 if ($code !== $info[0])
52 $code, $info[0]);
54 printf("[007] Driver specific error code not set\n");
61 $code = $db->errorCode();
64 if ($code != '42000')
65 printf("[009] Expecting SQL code 42000 got '%s'\n", $code);
66 if ($code !== $info[0])
68 $code, $info[0]);
70 printf("[011] Driver specific error code not set\n");
80 $code = $db->errorCode();
83 if ($code != '42000')
84 printf("[013] Expecting SQL code 42000 got '%s'\n", $code);
85 if ($code !== $info[0])
87 $code, $info[0]);
89 printf("[015] Driver specific error code not set\n");
93 if ($e->getCode() !== $code)
94 printf("[017] Exception code '%s' differs from errorCode '%s'\n",
95 $e->getCode(), $code);
118 $code = $db->errorCode();
121 if ($code != '42000')
122 printf("[021] Expecting SQL code 42000 got '%s'\n", $code);
123 if ($code !== $info[0])
125 $code, $info[0]);
127 printf("[023] Driver specific error code not set\n");
131 if ($e->getCode() !== $code)
132 printf("[025] Exception code '%s' differs from errorCode '%s'\n",
133 $e->getCode(), $code);