Skip to content

Commit b88a493

Browse files
committed
PDO MySQL: Make test libmysql compatible
1 parent 9718e59 commit b88a493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pdo_mysql/tests/bug_33689.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ $stmt->execute();
2727
$tmp = $stmt->getColumnMeta(0);
2828

2929
// 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))
30+
// 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))
3132
printf("Expecting pdo_type = 1 got %s\n", $tmp['pdo_type']);
3233
else
3334
unset($tmp['pdo_type']);

0 commit comments

Comments
 (0)