File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 44 "type" : " library" ,
55 "require" : {
66 "php" : " >=7.4" ,
7- "ext-pdo" : " *"
7+ "ext-pdo" : " *" ,
8+ "ext-fileinfo" : " *" ,
9+ "ext-intl" : " *" ,
10+ "ext-json" : " *" ,
11+ "ext-mbstring" : " *"
812 },
913 "license" : " MIT" ,
1014 "autoload" : {
2125 "minimum-stability" : " stable" ,
2226 "require-dev" : {
2327 "phpunit/phpunit" : " ^9.5"
28+ },
29+ "scripts" : {
30+ "test" : " phpunit"
2431 }
2532}
Original file line number Diff line number Diff line change @@ -374,6 +374,15 @@ public function testSelectSubStr()
374374 $ this ->assertSame ([], $ result ->getParams ());
375375 }
376376
377+ public function testSelectConcatStr ()
378+ {
379+ $ result = $ this ->qb ->select ("'Hello' || ' world!' as 'str' " );
380+
381+ $ this ->assertSame (false , $ result ->hasError ());
382+ $ this ->assertSame ("SELECT 'Hello' || ' world!' as 'str' " , $ result ->getSql ());
383+ $ this ->assertSame ([], $ result ->getParams ());
384+ }
385+
377386 public function testSelectSqliteVersion ()
378387 {
379388 $ result = $ this ->qb ->select ("sqlite_version() as ver " );
You can’t perform that action at this time.
0 commit comments