From 8559b781fa79ca7b7ab62c4693c58b23305108b9 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Fri, 17 Jan 2014 18:21:22 +0100 Subject: [PATCH] tests: mysql time is real interval --- tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt | 2 +- tests/Nette/Database/files/mysql-nette_test3.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt b/tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt index 4e78f8069a..4c4af082ab 100644 --- a/tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt +++ b/tests/Nette/Database/ResultSet.normalizeRow.mysql.phpt @@ -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 diff --git a/tests/Nette/Database/files/mysql-nette_test3.sql b/tests/Nette/Database/files/mysql-nette_test3.sql index e5a22cee9c..2efebf2075 100644 --- a/tests/Nette/Database/files/mysql-nette_test3.sql +++ b/tests/Nette/Database/files/mysql-nette_test3.sql @@ -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);