The driver takes SQL_C_LONG to mean SQLINTEGER rather than "long".
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 14 Feb 2014 12:52:16 +0000 (14:52 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 14 Feb 2014 12:53:15 +0000 (14:53 +0200)
The regression test was failing on the s390x architecture because of that.
It's big-endian, with sizeof(long) == 8.

test/src/positioned-update-test.c

index 85b28958dbe1381490a5572e43e2c07cea4ae970..ba8c280cbd53219467b4bf1fcdb4fb01d03f183e 100644 (file)
@@ -11,7 +11,7 @@ int main(int argc, char **argv)
    char sql[100000];
    char *sqlend;
    int         i;
-   long    colvalue;
+   SQLINTEGER  colvalue;
    SQLLEN      indColvalue;
 
    test_connect();