diff options
author | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
---|---|---|
committer | monty@mishka.local <> | 2004-10-20 01:28:42 +0300 |
commit | 04c23808a856bd8c4425d52419592d58d9bc5f35 (patch) | |
tree | 1919e7f3a6a68e36dbbcf1dd8b6cd8729a975e36 /tests | |
parent | 57a85986ac46550dcf7ced4cb50111efe2a6e0ad (diff) | |
download | mariadb-git-04c23808a856bd8c4425d52419592d58d9bc5f35.tar.gz |
Review of all code pushed since last review
Simple optimzations and cleanups
Removed compiler warnings and fixed portability issues
Added client functions 'mysql_embedded()' to allow client to check if we are using embedded server
Fixes for purify
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/client_test.c b/tests/client_test.c index 0b30cc3386d..eb97c0ce949 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -26,14 +26,6 @@ #include <mysql.h> #include <my_getopt.h> #include <m_string.h> -#ifdef HAVE_SYS_PARAM_H -/* Include to get MAXPATHLEN */ -#include <sys/param.h> -#endif - -#ifndef MAXPATHLEN -#define MAXPATHLEN 256 -#endif #define MAX_TEST_QUERY_LENGTH 300 /* MAX QUERY BUFFER LENGTH */ @@ -6652,8 +6644,8 @@ static void test_frm_bug() MYSQL_RES *result; MYSQL_ROW row; FILE *test_file; - char data_dir[MAXPATHLEN]; - char test_frm[MAXPATHLEN]; + char data_dir[FN_REFLEN]; + char test_frm[FN_REFLEN]; int rc; myheader("test_frm_bug"); @@ -6674,7 +6666,7 @@ static void test_frm_bug() bind[0].buffer_type= MYSQL_TYPE_STRING; bind[0].buffer= data_dir; - bind[0].buffer_length= MAXPATHLEN; + bind[0].buffer_length= FN_REFLEN; bind[0].is_null= 0; bind[0].length= 0; bind[1]= bind[0]; |