@@ -25,26 +25,6 @@ public function testInsert()
2525
2626 //--------------------------------------------------------------------
2727
28- public function testInsertNoEscape ()
29- {
30- $ timestamp = time ();
31-
32- $ job_data = [
33- 'name ' => '1 ' ,
34- 'description ' => $ this ->db ->DBDriver === 'SQLite3 '
35- ? "date( {$ timestamp }, 'unixepoch', 'localtime') "
36- : 'current_date() ' ,
37- ];
38-
39- $ this ->db ->table ('job ' )->insert ($ job_data , false );
40-
41- $ lastRecord = $ this ->db ->table ('job ' )->orderBy ('id ' , 'desc ' )->limit (1 )->get ()->getResultArray ()[0 ];
42-
43- $ this ->assertEquals (date ('Y-m-d ' ), date ('Y-m-d ' , strtotime ($ lastRecord ['description ' ])));
44- }
45-
46- //--------------------------------------------------------------------
47-
4828 public function testInsertBatch ()
4929 {
5030 $ job_data = [
@@ -66,31 +46,6 @@ public function testInsertBatch()
6646
6747 //--------------------------------------------------------------------
6848
69- /**
70- * @see https://github.com/codeigniter4/CodeIgniter4/issues/1667
71- */
72- public function testInsertBatchNoEscape ()
73- {
74- $ timestamp = time ();
75-
76- $ job_data = [
77- [
78- 'name ' => '1 ' ,
79- 'description ' => $ this ->db ->DBDriver === 'SQLite3 '
80- ? "date( {$ timestamp }, 'unixepoch', 'localtime') "
81- : 'current_date() ' ,
82- ],
83- ];
84-
85- $ this ->db ->table ('job ' )->insertBatch ($ job_data , false );
86-
87- $ lastRecord = $ this ->db ->table ('job ' )->orderBy ('id ' , 'desc ' )->limit (1 )->get ()->getResultArray ()[0 ];
88-
89- $ this ->assertEquals (date ('Y-m-d ' ), date ('Y-m-d ' , strtotime ($ lastRecord ['description ' ])));
90- }
91-
92- //--------------------------------------------------------------------
93-
9449 public function testReplaceWithNoMatchingData ()
9550 {
9651 $ data = [
0 commit comments