revamp ext/pdo_mysql

This commit is contained in:
Anatol Belski committed 2013-12-11 23:39:43 +01:00
1 parent 6d5c56367d
commit fa2a2c88fd
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -168,7 +168,7 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_str_size
char *nsql = NULL;
zend_str_size_int nsql_len = 0;
int ret;
int server_version;
php_uint_t server_version;
PDO_DBG_ENTER("mysql_handle_preparer");
PDO_DBG_INF_FMT("dbh=%p", dbh);
+2 -2
View File
@@ -675,7 +675,7 @@ static int pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{
PDO_DBG_RETURN(1);
}
for (i = 0; i < stmt->column_count; i++) {
int namelen;
zend_str_size_int namelen;
if (S->H->fetch_table_names) {
namelen = spprintf(&cols[i].name, 0, "%s.%s", S->fields[i].table, S->fields[i].name);
@@ -702,7 +702,7 @@ static int pdo_mysql_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{
}
/* }}} */
static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, php_uint_t *len, int *caller_frees TSRMLS_DC) /* {{{ */
static int pdo_mysql_stmt_get_col(pdo_stmt_t *stmt, php_int_t colno, char **ptr, php_uint_t *len, int *caller_frees TSRMLS_DC) /* {{{ */
{
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;