Compressed protocol support + extensibility for mysqlnd

This commit is contained in:
Andrey Hristov 2009-11-20 08:12:14 +00:00
parent 4e010297f1
commit 5143fe41e2
15 changed files with 842 additions and 355 deletions

View file

@ -75,7 +75,7 @@ int mysqlnd_local_infile_init(void **ptr, char *filename, void **userdata TSRMLS
if (info->fd == NULL) {
snprintf((char *)info->error_msg, sizeof(info->error_msg), "Can't find file '%-.64s'.", filename);
info->error_no = MYSQLND_EE_FILENOTFOUND;
info->error_no = MYSQLND_EE_FILENOTFOUND;
DBG_RETURN(1);
}
@ -196,7 +196,7 @@ mysqlnd_handle_local_infile(MYSQLND *conn, const char *filename, zend_bool *is_w
infile = conn->infile;
/* allocate buffer for reading data */
buf = (char *)mnd_ecalloc(1, buflen);
*is_warning = FALSE;
/* init handler: allocate read buffer and open file */