File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,22 @@ public static function upsert(): array
251
251
return $ upsert ;
252
252
}
253
253
254
+ public static function selectScalar (): array
255
+ {
256
+ $ data = parent ::selectScalar ();
257
+
258
+ $ data ['true ' ][1 ] = "SELECT '1' " ;
259
+ $ data ['false ' ][1 ] = "SELECT '0' " ;
260
+ $ data ['array ' ][1 ] = "SELECT 1, '1', 12.34 " ;
261
+ $ data ['string keys ' ][1 ] = 'SELECT 1 AS "a", \'1 \' AS "b", 12.34 ' ;
262
+
263
+ foreach ($ data as &$ values ) {
264
+ $ values [1 ] .= ' FROM DUAL ' ;
265
+ }
266
+
267
+ return $ data ;
268
+ }
269
+
254
270
public static function buildColumnDefinition (): array
255
271
{
256
272
$ referenceRestrict = new ForeignKey (
@@ -452,7 +468,7 @@ public static function caseExpressionBuilder(): array
452
468
3 ,
453
469
];
454
470
$ data ['without case expression ' ][1 ] = 'CASE WHEN "column_name" = 1 THEN :qp0 '
455
- . ' WHEN "column_name" = 2 THEN (SELECT :pv1 FROM DUAL) END ' ;
471
+ . ' WHEN "column_name" = 2 THEN (SELECT :qp1 FROM DUAL) END ' ;
456
472
457
473
return $ data ;
458
474
}
You can’t perform that action at this time.
0 commit comments