Lines Matching refs:code
42 $code = $db->errorCode();
45 if ($code != '42000')
46 printf("[005] Expecting SQL code 42000 got '%s'\n", $code);
47 if ($code !== $info[0])
49 $code, $info[0]);
51 printf("[007] Driver specific error code not set\n");
58 $code = $db->errorCode();
61 if ($code != '42000')
62 printf("[009] Expecting SQL code 42000 got '%s'\n", $code);
63 if ($code !== $info[0])
65 $code, $info[0]);
67 printf("[011] Driver specific error code not set\n");
76 $code = $db->errorCode();
79 if ($code != '42000')
80 printf("[013] Expecting SQL code 42000 got '%s'\n", $code);
81 if ($code !== $info[0])
83 $code, $info[0]);
85 printf("[015] Driver specific error code not set\n");
89 if ($e->getCode() !== $code)
90 printf("[017] Exception code '%s' differs from errorCode '%s'\n",
91 $e->getCode(), $code);
113 $code = $db->errorCode();
116 if ($code != '42000')
117 printf("[021] Expecting SQL code 42000 got '%s'\n", $code);
118 if ($code !== $info[0])
120 $code, $info[0]);
122 printf("[023] Driver specific error code not set\n");
126 if ($e->getCode() !== $code)
127 printf("[025] Exception code '%s' differs from errorCode '%s'\n",
128 $e->getCode(), $code);