Changeset: 9c02a099cf58 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9c02a099cf58
Modified Files:
        clients/mapiclient/ReadlineTools.c
        clients/odbc/driver/SQLPrepare.c
Branch: default
Log Message:

Fix some types.


diffs (44 lines):

diff --git a/clients/mapiclient/ReadlineTools.c 
b/clients/mapiclient/ReadlineTools.c
--- a/clients/mapiclient/ReadlineTools.c
+++ b/clients/mapiclient/ReadlineTools.c
@@ -57,7 +57,8 @@ static char *
 sql_tablename_generator(const char *text, int state)
 {
 
-       static int seekpos, len, rowcount;
+       static int64_t seekpos, rowcount;
+       static size_t len;
        static MapiHdl table_hdl;
 
        if (!state) {
@@ -170,7 +171,7 @@ static int
 mal_help(int cnt, int key)
 {
        char *name, *c, *buf;
-       int seekpos = 0, rowcount;
+       int64_t seekpos = 0, rowcount;
        MapiHdl table_hdl;
 
        (void) cnt;
@@ -215,7 +216,8 @@ mal_command_generator(const char *text, 
 {
 
        static int idx;
-       static int seekpos, len, rowcount;
+       static int64_t seekpos, rowcount;
+       static size_t len;
        static MapiHdl table_hdl;
        char *name, *buf;
 
diff --git a/clients/odbc/driver/SQLPrepare.c b/clients/odbc/driver/SQLPrepare.c
--- a/clients/odbc/driver/SQLPrepare.c
+++ b/clients/odbc/driver/SQLPrepare.c
@@ -116,7 +116,7 @@ MNDBPrepare(ODBCStmt *stmt,
                        addStmtError(stmt, "42000", m, 0);
                return SQL_ERROR;
        }
-       if (mapi_rows_affected(hdl) > (1 << 16)) {
+       if (mapi_rows_affected(hdl) > ((int64_t) 1 << 16)) {
                /* arbitrarily limit the number of parameters */
                /* Memory allocation error */
                addStmtError(stmt, "HY001", 0, 0);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to