@@ -182,7 +182,7 @@ if (dialect === 'sqlite') {
182
182
]
183
183
}
184
184
} ] ,
185
- expectation : "SELECT * FROM `myTable` ORDER BY f1(`myTable`.`id`) DESC, f2(12, 'lalala', '2011-03-27 10:01:55') ASC;" ,
185
+ expectation : "SELECT * FROM `myTable` ORDER BY f1(`myTable`.`id`) DESC, f2(12, 'lalala', '2011-03-27 10:01:55.000 +00:00 ') ASC;" ,
186
186
context : QueryGenerator ,
187
187
needsSequelize : true
188
188
} , {
@@ -315,7 +315,7 @@ if (dialect === 'sqlite') {
315
315
expectation : "INSERT INTO `myTable` (`name`,`value`) VALUES ('bar',NULL);"
316
316
} , {
317
317
arguments : [ 'myTable' , { name : 'foo' , birthday : moment ( "2011-03-27 10:01:55 +0000" , "YYYY-MM-DD HH:mm:ss Z" ) . toDate ( ) } ] ,
318
- expectation : "INSERT INTO `myTable` (`name`,`birthday`) VALUES ('foo','2011-03-27 10:01:55');"
318
+ expectation : "INSERT INTO `myTable` (`name`,`birthday`) VALUES ('foo','2011-03-27 10:01:55.000 +00:00 ');"
319
319
} , {
320
320
arguments : [ 'myTable' , { name : "foo" , value : true } ] ,
321
321
expectation : "INSERT INTO `myTable` (`name`,`value`) VALUES ('foo',1);"
@@ -357,7 +357,7 @@ if (dialect === 'sqlite') {
357
357
expectation : "INSERT INTO `myTable` (`name`) VALUES ('''bar'''),('foo');"
358
358
} , {
359
359
arguments : [ 'myTable' , [ { name : 'foo' , birthday : moment ( "2011-03-27 10:01:55 +0000" , "YYYY-MM-DD HH:mm:ss Z" ) . toDate ( ) } , { name : 'bar' , birthday : moment ( "2012-03-27 10:01:55 +0000" , "YYYY-MM-DD HH:mm:ss Z" ) . toDate ( ) } ] ] ,
360
- expectation : "INSERT INTO `myTable` (`name`,`birthday`) VALUES ('foo','2011-03-27 10:01:55'),('bar','2012-03-27 10:01:55');"
360
+ expectation : "INSERT INTO `myTable` (`name`,`birthday`) VALUES ('foo','2011-03-27 10:01:55.000 +00:00 '),('bar','2012-03-27 10:01:55.000 +00:00 ');"
361
361
} , {
362
362
arguments : [ 'myTable' , [ { name : "bar" , value : null } , { name : 'foo' , value : 1 } ] ] ,
363
363
expectation : "INSERT INTO `myTable` (`name`,`value`) VALUES ('bar',NULL),('foo',1);"
@@ -394,10 +394,10 @@ if (dialect === 'sqlite') {
394
394
updateQuery : [
395
395
{
396
396
arguments : [ 'myTable' , { name : 'foo' , birthday : moment ( "2011-03-27 10:01:55 +0000" , "YYYY-MM-DD HH:mm:ss Z" ) . toDate ( ) } , { id : 2 } ] ,
397
- expectation : "UPDATE `myTable` SET `name`='foo',`birthday`='2011-03-27 10:01:55' WHERE `id`=2"
397
+ expectation : "UPDATE `myTable` SET `name`='foo',`birthday`='2011-03-27 10:01:55.000 +00:00 ' WHERE `id`=2"
398
398
} , {
399
399
arguments : [ 'myTable' , { name : 'foo' , birthday : moment ( "2011-03-27 10:01:55 +0000" , "YYYY-MM-DD HH:mm:ss Z" ) . toDate ( ) } , 2 ] ,
400
- expectation : "UPDATE `myTable` SET `name`='foo',`birthday`='2011-03-27 10:01:55' WHERE `id`=2"
400
+ expectation : "UPDATE `myTable` SET `name`='foo',`birthday`='2011-03-27 10:01:55.000 +00:00 ' WHERE `id`=2"
401
401
} , {
402
402
arguments : [ 'myTable' , { name : 'foo' } , { id : 2 } ] ,
403
403
expectation : "UPDATE `myTable` SET `name`='foo' WHERE `id`=2"
0 commit comments