Lines Matching defs:sql
159 * @param string ...$args - the arguments of query(), the first is the sql and others are values
167 $sql = $this->prepareSql($args);
168 return $this->adapter->query($sql);
182 * - string $sql - the statement
190 $sql = trim(array_shift($args));
191 $sql = rtrim($sql, ';');
193 if (!$sql) {
204 $qmc = substr_count($sql, '?');
207 'Expected ' . $qmc . ' got ' . $argc . ' - ' . hsc($sql));
210 'Expected ' . $qmc . ' got ' . $argc . ' - ' . hsc($sql));
214 $parts = explode('?', $sql, $argc + 1);
216 $sql = '';
219 $sql .= $part;
220 $sql .= array_shift($args);
223 return $sql;
386 * Split sql queries on semicolons, unless when semicolons are quoted
391 * @param string $sql
392 * @return array sql queries
395 public function SQLstring2array($sql)
400 return Tools::SQLstring2array($sql);
406 public function doTransaction($sql, $sqlpreparing = true)