Skip to content

Commit

Permalink
tests: mysql time is real interval
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 17, 2014
1 parent b2bf9b6 commit 8559b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt
Expand Up @@ -30,7 +30,7 @@ Assert::equal( array(
'float' => 1.0,
'double' => 1.1,
'date' => new Nette\DateTime('2012-10-13'),
'time' => new DateInterval('PT10H10M10S'),
'time' => new DateInterval('PT30H10M10S'),
'datetime' => new Nette\DateTime('2012-10-13 10:10:10'),
'timestamp' => new Nette\DateTime('2012-10-13 10:10:10'),
'year' => PHP_VERSION_ID < 50417 ? '2012' : 2012, // PHP bug #48724
Expand Down
2 changes: 1 addition & 1 deletion tests/Nette/Database/files/mysql-nette_test3.sql
Expand Up @@ -41,6 +41,6 @@ CREATE TABLE `types` (
) ENGINE=InnoDB;

INSERT INTO `types` (`unsigned_int`, `int`, `smallint`, `tinyint`, `mediumint`, `bigint`, `bit`, `decimal`, `decimal2`, `float`, `double`, `date`, `time`, `datetime`, `timestamp`, `year`, `char`, `varchar`, `binary`, `varbinary`, `blob`, `tinyblob`, `mediumblob`, `longblob`, `text`, `tinytext`, `mediumtext`, `longtext`, `enum`, `set`) VALUES
(1, 1, 1, 1, 1, 1, 1, 1, 1.1, 1, 1.1, '2012-10-13', '10:10:10', '2012-10-13 10:10:10', '2012-10-13 10:10:10', '2012', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a'),
(1, 1, 1, 1, 1, 1, 1, 1, 1.1, 1, 1.1, '2012-10-13', '30:10:10', '2012-10-13 10:10:10', '2012-10-13 10:10:10', '2012', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a'),
(0, 0, 0, 0, 0, 0, 0, 0, 0.5, 0.5, 0.5, '0000-00-00', '00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2000', '', '', '\0', '', '', '', '', '', '', '', '', '', 'b', ''),
(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

0 comments on commit 8559b78

Please sign in to comment.