List:Commits« Previous MessageNext Message »
From:bdegtyariov Date:April 14 2008 6:13pm
Subject:Connector/ODBC 3.51 commit: r1096 - trunk/test
View as plain text  
Modified:
   trunk/test/my_catalog.c
Log:
Removed SQL_DESC_PRECISION test from t_bug12805

Modified: trunk/test/my_catalog.c
===================================================================
--- trunk/test/my_catalog.c	2008-04-14 16:36:11 UTC (rev 1095)
+++ trunk/test/my_catalog.c	2008-04-14 18:13:40 UTC (rev 1096)
@@ -1222,11 +1222,11 @@
   ok_sql(hstmt1, "DROP TABLE IF EXISTS bug12805");
   ok_sql(hstmt1, "CREATE TABLE bug12805("\
                  "id INT PRIMARY KEY auto_increment,"\
-                 "longimagedata LONGBLOB NULL)");
+                 "longdata LONGBLOB NULL)");
 
   ok_stmt(hstmt1, SQLColumns(hstmt1, NULL, 0, NULL, 0,
                              (SQLCHAR *)"bug12805", SQL_NTS,
-                             (SQLCHAR *)"longimagedata", SQL_NTS));
+                             (SQLCHAR *)"longdata", SQL_NTS));
 
   ok_stmt(hstmt1, SQLFetch(hstmt1));
   ok_stmt(hstmt1, SQLGetData(hstmt1, 7, SQL_C_ULONG, &length,
@@ -1240,18 +1240,13 @@
                                  &length, NULL, NULL));
   is_num(length, 2147483647);
 
-  length= 0;
-  ok_stmt(hstmt1, SQLColAttribute(hstmt1, 2, SQL_DESC_PRECISION, NULL, 0,
-                                 NULL, &length));
-  
-  is_num(length, 2147483647);
   ok_stmt(hstmt1, SQLFreeStmt(hstmt1, SQL_CLOSE));
   free_basic_handles(&henv1, &hdbc1, &hstmt1);
 
   /* Check without the 32-bit signed flag */
   ok_stmt(hstmt, SQLColumns(hstmt, NULL, 0, NULL, 0,
                             (SQLCHAR *)"bug12805", SQL_NTS,
-                            (SQLCHAR *)"longimagedata", SQL_NTS));
+                            (SQLCHAR *)"longdata", SQL_NTS));
 
   ok_stmt(hstmt, SQLFetch(hstmt));
   ok_stmt(hstmt, SQLGetData(hstmt, 7, SQL_C_ULONG, &length,
@@ -1266,12 +1261,6 @@
                                  &length, NULL, NULL));
   is_num(length, 4294967295);
 
-  length= 0;
-  ok_stmt(hstmt, SQLColAttribute(hstmt, 2, SQL_DESC_PRECISION, NULL, 0,
-                                 NULL, &length));
-  
-  /* This length is always 2G */
-  is_num(length, 2147483647);
   ok_stmt(hstmt, SQLFreeStmt(hstmt, SQL_CLOSE));
   ok_sql(hstmt, "DROP TABLE bug12805");
 

Thread
Connector/ODBC 3.51 commit: r1096 - trunk/testbdegtyariov14 Apr