You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Test fixes:
for api functions which require string with length parameter (e.g. mysql_real_connect() or mysql_stmt_prepare() we now use the macro SL(string) which substitutes string and string length.
This commit is contained in:
@@ -55,6 +55,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#define MAX_KEY MAX_INDEXES
|
||||
#define MAX_KEY_LENGTH_DECIMAL_WIDTH 4 /* strlen("4096") */
|
||||
|
||||
#define SL(s) (s), (unsigned long)strlen((s))
|
||||
#define SL_BIN(s) (s), (unsigned long)sizeof((s))
|
||||
|
||||
#define MAX_TEST_QUERY_LENGTH 300 /* MAX QUERY BUFFER LENGTH */
|
||||
|
||||
/* prevent warnings on Win64 by using STMT_LEN instead of strlen */
|
||||
|
Reference in New Issue
Block a user