File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ public function getFormat()
110
110
public function isUseInUrlBindingsParams ():bool
111
111
{
112
112
// 'query=select {p1:UInt8} + {p2:UInt8}' -F "param_p1=3" -F "param_p2=4"
113
- return preg_match ('#{[\w+]+:[\w+]+}# ' ,$ this ->sql );
113
+ return preg_match ('#{[\w+]+:[\w+() ]+}# ' ,$ this ->sql );
114
114
115
115
}
116
116
public function getUrlBindingsParams ():array
Original file line number Diff line number Diff line change @@ -57,4 +57,16 @@ public function testSelectAsKeys()
57
57
}
58
58
}
59
59
60
+ public function testArrayAsPostParam ()
61
+ {
62
+ $ arr = [1 ,3 ,6 ];
63
+ $ result = $ this ->client ->select (
64
+ 'SELECT {arr:Array(UInt8)} as arr ' ,
65
+ [
66
+ 'arr ' =>json_encode ($ arr )
67
+ ]
68
+ );
69
+ $ this ->assertEquals ($ arr , $ result ->fetchRow ('arr ' ));
70
+ }
71
+
60
72
}
You can’t perform that action at this time.
0 commit comments