Searched refs:quotedlen (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c145 static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) argument
152 *quotedlen = 0;
162 if(unquoted[i] == '\'') ++*quotedlen;
163 ++*quotedlen;
172 *quotedlen = (unquotedlen * 2) + 2; /* 2 chars per byte +2 for "0x" prefix */
173 q = *quoted = emalloc(*quotedlen);
183 *quotedlen += 2; /* +2 for opening, closing quotes */
184 q = *quoted = emalloc(*quotedlen);
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c274 char **quoted, size_t *quotedlen, enum pdo_param_type paramtype)
281 *quotedlen = 2;
282 *quoted = emalloc(*quotedlen+1);
291 *quotedlen = unquotedlen + qcount + 2;
292 *quoted = c = emalloc(*quotedlen+1);
304 strncpy(c, l, *quotedlen-(c-*quoted)-1);
305 (*quoted)[*quotedlen-1] = '\'';
306 (*quoted)[*quotedlen] = '\0';
273 firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) argument
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_driver.c264 static int odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type param_type ) argument
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c331 static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) argument
341 *quotedlen = tmp_len + 1;
342 *quoted = emalloc(*quotedlen + 1);
343 memcpy((*quoted)+1, escaped, *quotedlen-2);
345 (*quoted)[*quotedlen-1] = '\'';
346 (*quoted)[*quotedlen] = '\0';
352 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL);
353 (*quoted)[*quotedlen + 1] = '\'';
354 (*quoted)[*quotedlen + 2] = '\0';
355 *quotedlen
[all...]
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c233 static int sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype ) argument
237 *quotedlen = strlen(*quoted);
/PHP_TRUNK/ext/pdo_oci/
H A Doci_driver.c369 static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype ) /* {{{ */ argument
376 *quotedlen = 2;
377 *quoted = emalloc(*quotedlen+1);
386 *quotedlen = unquotedlen + qcount + 2;
387 *quoted = c = emalloc(*quotedlen+1);
398 strncpy(c, l, *quotedlen-(c-*quoted)-1);
399 (*quoted)[*quotedlen-1] = '\'';
400 (*quoted)[*quotedlen] = '\0';
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h251 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype);
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c300 static int mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_type paramtype ) argument
307 *quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen);
308 (*quoted)[0] =(*quoted)[++*quotedlen] = '\'';
309 (*quoted)[++*quotedlen] = '\0';
310 PDO_DBG_INF_FMT("quoted=%.*s", (int)*quotedlen, *quoted);

Completed in 47 milliseconds