Skip to content

Commit ee506b5

Browse files
committed
Add test for primary key type
1 parent 43522bf commit ee506b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/default/data/doctrine-dbal.php

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public function executeQuery(Connection $conn, array $types, QueryCacheProfile $
6161

6262
$result = $conn->executeQuery('SELECT email, adaid FROM ada');
6363
assertType('array{email: string, adaid: int<-32768, 32767>}|false', $result->fetchAssociative());
64+
65+
$result = $conn->executeQuery('SELECT pid FROM typemix');
66+
assertType('array{pid: int<1, 4294967295>}|false', $result->fetchAssociative());
6467
}
6568

6669
public function executeStatement(Connection $conn, int $adaid)

tests/schema.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ALTER TABLE `ak`
3030

3131

3232
CREATE TABLE `typemix` (
33-
`pid` int(11) unsigned NOT NULL AUTO_INCREMENT,
33+
`pid` int unsigned NOT NULL AUTO_INCREMENT,
3434
`c_char5` char(5) NOT NULL,
3535
`c_varchar255` varchar(255) NOT NULL,
3636
`c_varchar25` varchar(25) DEFAULT NULL,

0 commit comments

Comments
 (0)