We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9718e59 commit b88a493Copy full SHA for b88a493
ext/pdo_mysql/tests/bug_33689.phpt
@@ -27,7 +27,8 @@ $stmt->execute();
27
$tmp = $stmt->getColumnMeta(0);
28
29
// libmysql and mysqlnd will show the pdo_type entry at a different position in the hash
30
-if (!isset($tmp['pdo_type']) || (isset($tmp['pdo_type']) && $tmp['pdo_type'] != 1))
+// and will report a different type, as mysqlnd returns native types.
31
+if (!isset($tmp['pdo_type']) || ($tmp['pdo_type'] != 1 && $tmp['pdo_type'] != 2))
32
printf("Expecting pdo_type = 1 got %s\n", $tmp['pdo_type']);
33
else
34
unset($tmp['pdo_type']);
0 commit comments