--- sql/mysql/parser3mysql.C 2009/04/08 11:13:00 1.35 +++ sql/mysql/parser3mysql.C 2009/04/10 12:20:12 1.35.2.1 @@ -10,7 +10,7 @@ 2001.11.06 numrows on "HP-UX istok1 B.11.00 A 9000/869 448594332 two-user license" 3.23.42 & 4.0.0.alfa never worked, both subst & .sl version returned 0 */ -static const char *RCSId="$Id: parser3mysql.C,v 1.35 2009/04/08 11:13:00 misha Exp $"; +static const char *RCSId="$Id: parser3mysql.C,v 1.35.2.1 2009/04/10 12:20:12 misha Exp $"; #include "config_includes.h" @@ -29,16 +29,19 @@ static const char *RCSId="$Id: parser3my #endif // for mysql < 4.1 +#if !defined(CLIENT_MULTI_RESULTS) || !defined(CLIENT_MULTI_STATEMENTS) +# define OLD_MYSQL_CLIENT 1 +#endif + #ifndef CLIENT_MULTI_RESULTS -#define CLIENT_MULTI_RESULTS (1UL << 17) -#define OLD_MYSQL_CLIENT 1 +# define CLIENT_MULTI_RESULTS (1UL << 17) #endif + #ifndef CLIENT_MULTI_STATEMENTS -#define CLIENT_MULTI_STATEMENTS (1UL << 16) -#undef OLD_MYSQL_CLIENT -#define OLD_MYSQL_CLIENT 1 +# define CLIENT_MULTI_STATEMENTS (1UL << 16) #endif + static char *lsplit(char *string, char delim){ if(string) { if(char *v=strchr(string, delim)){