Skip to content

Commit 8a016be

Browse files
committed
Fixed invalid datatime for MySQL 5.7
1 parent 819d4ec commit 8a016be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_issues.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ async def test_issue_8(connection):
7575
conn = connection
7676
c = await conn.cursor()
7777
await c.execute("drop table if exists test")
78-
await c.execute("""CREATE TABLE `test` (`station` int(10) NOT
79-
NULL DEFAULT '0', `dh`
80-
datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
78+
await c.execute("""CREATE TABLE `test` (
79+
`station` int(10) NOT NULL DEFAULT '0',
80+
`dh` datetime NOT NULL DEFAULT '2020-04-25 22:39:12',
8181
`echeance` int(1) NOT NULL DEFAULT '0', `me` double DEFAULT NULL,
8282
`mo` double DEFAULT NULL, PRIMARY
8383
KEY (`station`,`dh`,`echeance`)) ENGINE=MyISAM DEFAULT

0 commit comments

Comments
 (0)