summaryrefslogtreecommitdiff
path: root/include/mysql_com.h
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/myoffice.izhnet.ru>2006-09-22 14:46:18 +0500
committerunknown <ramil/ram@mysql.com/myoffice.izhnet.ru>2006-09-22 14:46:18 +0500
commit628846013ffc7744313b0c08763ed0862a0952aa (patch)
treeeb2d25957035fa392674de270bb9244221ade52c /include/mysql_com.h
parenta008b072f379a111a2746ba9c309552167833710 (diff)
downloadmariadb-git-628846013ffc7744313b0c08763ed0862a0952aa.tar.gz
Fix for bug #22227: ulong not defined for client library
- don't use (ulong) type cast in the include/mysql_com.h as it's not a standard type and might cause compilation errors on some platforms. include/mysql_com.h: Fix for bug #22227: ulong not defined for client library - use UL istead of (ulong) type cast.
Diffstat (limited to 'include/mysql_com.h')
-rw-r--r--include/mysql_com.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h
index b1dd6152cf4..e58d41fad1c 100644
--- a/include/mysql_com.h
+++ b/include/mysql_com.h
@@ -137,11 +137,11 @@ enum enum_server_command
#define CLIENT_TRANSACTIONS 8192 /* Client knows about transactions */
#define CLIENT_RESERVED 16384 /* Old flag for 4.1 protocol */
#define CLIENT_SECURE_CONNECTION 32768 /* New 4.1 authentication */
-#define CLIENT_MULTI_STATEMENTS (((ulong) 1) << 16) /* Enable/disable multi-stmt support */
-#define CLIENT_MULTI_RESULTS (((ulong) 1) << 17) /* Enable/disable multi-results */
+#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
+#define CLIENT_MULTI_RESULTS (1UL << 17) /* Enable/disable multi-results */
-#define CLIENT_SSL_VERIFY_SERVER_CERT (((ulong) 1) << 30)
-#define CLIENT_REMEMBER_OPTIONS (((ulong) 1) << 31)
+#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
+#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
#define SERVER_STATUS_IN_TRANS 1 /* Transaction has started */
#define SERVER_STATUS_AUTOCOMMIT 2 /* Server in auto_commit mode */