Method Sql.sql_util.emulate_bindings()
- Method emulate_bindings
stringemulate_bindings(stringquery,mapping(string|int:mixed)|voidbindings,void|objectdriver,void|stringcharset)- Description
Build a raw SQL query, given the cooked query and the variable bindings It's meant to be used as an emulation engine for those drivers not providing such a behaviour directly (i.e. Oracle). The raw query can contain some variables (identified by prefixing a colon to a name or a number (i.e. ":var" or ":2"). They will be replaced by the corresponding value in the mapping.
- Parameter
query The query.
- Parameter
bindings Optional mapping containing the variable bindings. Make sure that no confusion is possible in the query. If necessary, change the variables' names.