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

/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h253 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC);
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c275 static int firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, /* {{{ */ argument
282 if (!unquotedlen) {
293 *quotedlen = unquotedlen + qcount + 2;
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c302 static int mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
307 PDO_DBG_INF_FMT("unquoted=%.*s", unquotedlen, unquoted);
308 *quoted = safe_emalloc(2, unquotedlen, 3);
309 *quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen);
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_driver.c264 static int odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type param_type TSRMLS_DC) argument
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c233 static int sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
235 *quoted = safe_emalloc(2, unquotedlen, 3);
236 sqlite3_snprintf(2*unquotedlen + 3, *quoted, "'%q'", unquoted);
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c145 static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
157 for(i=0;i<unquotedlen;i++) {
172 *quotedlen = (unquotedlen * 2) + 2; /* 2 chars per byte +2 for "0x" prefix */
177 for (i=0;i<unquotedlen;i++) {
187 for (i=0;i<unquotedlen;i++) {
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c319 static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
328 escaped = PQescapeByteaConn(H->server, (unsigned char *)unquoted, (size_t)unquotedlen, &tmp_len);
338 *quoted = safe_emalloc(2, unquotedlen, 3);
340 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, (size_t)unquotedlen, NULL);
/PHP_TRUNK/ext/pdo_oci/
H A Doci_driver.c371 static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) /* {{{ */ argument
377 if (!unquotedlen) {
388 *quotedlen = unquotedlen + qcount + 2;

Completed in 14 milliseconds