diff --git a/tests/default/data/doctrine-dbal.php b/tests/default/data/doctrine-dbal.php index 4fc0f957..bc4096ee 100644 --- a/tests/default/data/doctrine-dbal.php +++ b/tests/default/data/doctrine-dbal.php @@ -61,6 +61,9 @@ public function executeQuery(Connection $conn, array $types, QueryCacheProfile $ $result = $conn->executeQuery('SELECT email, adaid FROM ada'); assertType('array{email: string, adaid: int<-32768, 32767>}|false', $result->fetchAssociative()); + + $result = $conn->executeQuery('SELECT pid FROM typemix'); + assertType('array{pid: int<0, 4294967295>}|false', $result->fetchAssociative()); } public function executeStatement(Connection $conn, int $adaid) diff --git a/tests/schema.sql b/tests/schema.sql index 086ca7a0..614063c2 100644 --- a/tests/schema.sql +++ b/tests/schema.sql @@ -30,7 +30,7 @@ ALTER TABLE `ak` CREATE TABLE `typemix` ( - `pid` int NOT NULL, + `pid` int unsigned NOT NULL AUTO_INCREMENT, `c_char5` char(5) NOT NULL, `c_varchar255` varchar(255) NOT NULL, `c_varchar25` varchar(25) DEFAULT NULL, @@ -70,15 +70,10 @@ CREATE TABLE `typemix` ( `c_json` json, `c_json_not_null` json NOT NULL, `c_decimal` decimal(12, 2), - `c_decimal_not_null` decimal(12, 2) NOT NULL + `c_decimal_not_null` decimal(12, 2) NOT NULL, + PRIMARY KEY(`pid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -ALTER TABLE `typemix` - ADD PRIMARY KEY (`pid`); - -ALTER TABLE `typemix` - MODIFY `pid` int NOT NULL AUTO_INCREMENT; - CREATE TABLE `cmsdomain` ( `id` int(11) NOT NULL, `cmsdomainid` int(11) NOT NULL,