mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fixes to get mysql-test included in the distributions
client/mysqldump.c: Fixed to not use strncasecmp client/mysqlimport.c: Fixed to not use strncasecmp mysql-test/Makefile.am: Changes needed for RPM mysql-test/mysql-test-run.sh: Changes to work with binary installations scripts/make_binary_distribution.sh: Added missing mysql-test files sql-bench/Makefile.am: Changes needed for RPM sql/mysqld.cc: Portability fix support-files/mysql.spec.sh: Added mysql-test to sql-bench
This commit is contained in:
@ -863,14 +863,16 @@ static char *add_load_option(char *ptr,const char *object,
|
||||
{
|
||||
if (object)
|
||||
{
|
||||
if (!strncasecmp(object,"0x",2)) /* hex constant; don't escape */
|
||||
ptr= strxmov(ptr," ",statement," ",object,NullS);
|
||||
else /* char constant; escape */
|
||||
{
|
||||
ptr= strxmov(ptr," ",statement," '",NullS);
|
||||
ptr= field_escape(ptr,object,(uint) strlen(object));
|
||||
*ptr++= '\'';
|
||||
}
|
||||
/* Don't escape hex constants */
|
||||
if (object[0] == '0' && (object[1] == 'x' || object[1] == 'X'))
|
||||
ptr= strxmov(ptr," ",statement," ",object,NullS);
|
||||
else
|
||||
{
|
||||
/* char constant; escape */
|
||||
ptr= strxmov(ptr," ",statement," '",NullS);
|
||||
ptr= field_escape(ptr,object,(uint) strlen(object));
|
||||
*ptr++= '\'';
|
||||
}
|
||||
}
|
||||
return ptr;
|
||||
} /* add_load_option */
|
||||
|
Reference in New Issue
Block a user