fixed variable length recognition in CC_mapping
authorLudek Finstrle <luf@pzkagis.cz>
Thu, 26 Jan 2006 19:24:51 +0000 (19:24 +0000)
committerLudek Finstrle <luf@pzkagis.cz>
Thu, 26 Jan 2006 19:24:51 +0000 (19:24 +0000)
connection.c

index 9a797b898ce51790e5b3d3aaedc8cda7faaf635b..b7fe650c4dab41fe43521a175193795d0b40fa93 100644 (file)
@@ -1924,7 +1924,7 @@ CC_mapping(ConnectionClass *self, PGresult *pgres,QResultClass *qres)
             *         (UNKNOWNS_AS_MAX), and UNKNOWNS_AS_LONGEST won't work because we don't
             *         have data at this point 
             */
-       if(typlen == -1)
+       if(typlen < 0)
        {
            switch (ci->drivers.unknown_sizes)
            {