mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/51
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/jun05/51
This commit is contained in:
commit
4b93804592
565 changed files with 16198 additions and 12618 deletions
|
|
@ -14,7 +14,7 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
|
||||
extern uint mysql_port;
|
||||
extern my_string mysql_unix_port;
|
||||
extern char * mysql_unix_port;
|
||||
|
||||
#define CLIENT_CAPABILITIES (CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG | \
|
||||
CLIENT_TRANSACTIONS | \
|
||||
|
|
|
|||
|
|
@ -623,7 +623,7 @@ mysql_connect(MYSQL *mysql,const char *host,
|
|||
if (!(res=mysql_real_connect(mysql,host,user,passwd,NullS,0,NullS,0)))
|
||||
{
|
||||
if (mysql->free_me)
|
||||
my_free((gptr) mysql,MYF(0));
|
||||
my_free((uchar*) mysql,MYF(0));
|
||||
}
|
||||
mysql->reconnect= 1;
|
||||
DBUG_RETURN(res);
|
||||
|
|
@ -944,7 +944,7 @@ static int default_local_infile_read(void *ptr, char *buf, uint buf_len)
|
|||
int count;
|
||||
default_local_infile_data*data = (default_local_infile_data *) ptr;
|
||||
|
||||
if ((count= (int) my_read(data->fd, (byte *) buf, buf_len, MYF(0))) < 0)
|
||||
if ((count= (int) my_read(data->fd, (uchar *) buf, buf_len, MYF(0))) < 0)
|
||||
{
|
||||
data->error_num= EE_READ; /* the errmsg for not entire file read */
|
||||
my_snprintf(data->error_msg, sizeof(data->error_msg)-1,
|
||||
|
|
@ -4537,7 +4537,7 @@ static int stmt_fetch_row(MYSQL_STMT *stmt, uchar *row)
|
|||
}
|
||||
if (!((bit<<=1) & 255))
|
||||
{
|
||||
bit= 1; /* To next byte */
|
||||
bit= 1; /* To next uchar */
|
||||
null_ptr++;
|
||||
}
|
||||
}
|
||||
|
|
@ -4730,7 +4730,7 @@ static void stmt_update_metadata(MYSQL_STMT *stmt, MYSQL_ROWS *data)
|
|||
DBUG_ASSERT(row <= row_end);
|
||||
if (!((bit<<=1) & 255))
|
||||
{
|
||||
bit= 1; /* To next byte */
|
||||
bit= 1; /* To next uchar */
|
||||
null_ptr++;
|
||||
}
|
||||
}
|
||||
|
|
@ -5041,7 +5041,7 @@ my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
|
|||
}
|
||||
}
|
||||
|
||||
my_free((gptr) stmt, MYF(MY_WME));
|
||||
my_free((uchar*) stmt, MYF(MY_WME));
|
||||
|
||||
DBUG_RETURN(test(rc));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -206,10 +206,10 @@ void STDCALL mysql_manager_close(MYSQL_MANAGER* con)
|
|||
allocated in my_multimalloc() along with con->host, freeing
|
||||
con->hosts frees the whole block
|
||||
*/
|
||||
my_free((gptr)con->host,MYF(MY_ALLOW_ZERO_PTR));
|
||||
my_free((uchar*)con->host,MYF(MY_ALLOW_ZERO_PTR));
|
||||
net_end(&con->net);
|
||||
if (con->free_me)
|
||||
my_free((gptr)con,MYF(0));
|
||||
my_free((uchar*)con,MYF(0));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue