Skip to content

Commit f988acf

Browse files
committed
Fix db insert tests with no escaping for mysql
1 parent dacdecf commit f988acf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Database/Live/InsertTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testInsertNoEscape()
3333
'name' => '1',
3434
'description' => $this->db->DBDriver === 'SQLite3'
3535
? "date({$timestamp}, 'unixepoch', 'localtime')"
36-
: 'DATE()',
36+
: 'current_date()',
3737
];
3838

3939
$this->db->table('job')->insert($job_data, false);
@@ -78,7 +78,7 @@ public function testInsertBatchNoEscape()
7878
'name' => '1',
7979
'description' => $this->db->DBDriver === 'SQLite3'
8080
? "date({$timestamp}, 'unixepoch', 'localtime')"
81-
: 'DATE()',
81+
: 'current_date()',
8282
],
8383
];
8484

0 commit comments

Comments
 (0)