[GRASS-SVN] r71270 - grass/trunk/db/drivers/odbc
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 17 13:20:11 PDT 2017
Author: mmetz
Date: 2017-07-17 13:20:11 -0700 (Mon, 17 Jul 2017)
New Revision: 71270
Modified:
grass/trunk/db/drivers/odbc/fetch.c
grass/trunk/db/drivers/odbc/listtab.c
grass/trunk/db/drivers/odbc/table.c
Log:
odbc driver: use correct datatype SQLLEN instead of SQLINTEGER
Modified: grass/trunk/db/drivers/odbc/fetch.c
===================================================================
--- grass/trunk/db/drivers/odbc/fetch.c 2017-07-17 20:16:15 UTC (rev 71269)
+++ grass/trunk/db/drivers/odbc/fetch.c 2017-07-17 20:20:11 UTC (rev 71270)
@@ -14,7 +14,7 @@
dbColumn *column;
dbValue *value;
int col, ncols;
- SQLINTEGER len;
+ SQLLEN len;
int htype, sqltype, ctype;
SQLRETURN ret;
DATE_STRUCT date;
Modified: grass/trunk/db/drivers/odbc/listtab.c
===================================================================
--- grass/trunk/db/drivers/odbc/listtab.c 2017-07-17 20:16:15 UTC (rev 71269)
+++ grass/trunk/db/drivers/odbc/listtab.c 2017-07-17 20:20:11 UTC (rev 71270)
@@ -12,7 +12,7 @@
dbString *list;
int count = 0;
SQLCHAR tableName[SQL_MAX_TABLE_NAME_LEN];
- SQLINTEGER indi, nrow = 0;
+ SQLLEN indi, nrow = 0;
SQLRETURN ret;
char ttype[50];
Modified: grass/trunk/db/drivers/odbc/table.c
===================================================================
--- grass/trunk/db/drivers/odbc/table.c 2017-07-17 20:16:15 UTC (rev 71269)
+++ grass/trunk/db/drivers/odbc/table.c 2017-07-17 20:20:11 UTC (rev 71270)
@@ -130,7 +130,7 @@
char msg[OD_MSG];
SQLINTEGER err;
SQLCHAR ttype[50], *tname;
- SQLINTEGER nrow = 0;
+ SQLLEN nrow = 0;
/* allocate cursor */
More information about the grass-commit
mailing list