Method __builtin.Sql.Connection()->handle_extraargs()
- Method
handle_extraargs
array
(string
|mapping
(string
|int
:mixed
)) handle_extraargs(string
query
,array
(mixed
)extraargs
)- Description
Handle sprintf-based quoted arguments
- Parameter
query
The query as sent to one of the query functions.
- Parameter
extraargs
The arguments following the query. The last element of the array may be a bindings mapping.
- Returns
Returns an array with up to two elements:
Array string
0
The query altered to use bindings-syntax.
mapping
(string
|int
:mixed
)1
A bindings mapping. Not present if no bindings were added.
- Note
Support for specifying an initial options mapping was added in Pike 9.0.