Date: Monday, January 2, 2006 @ 11:51:39
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: DriverResultSet.cpp (1.30 -> 1.31)

Rollbacked getAsString and getAsInt support for timestamp (to be implemented 
later)
Minor typo


---------------------+
 DriverResultSet.cpp |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)


Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.30 carob/src/DriverResultSet.cpp:1.31
--- carob/src/DriverResultSet.cpp:1.30  Mon Jan  2 11:40:42 2006
+++ carob/src/DriverResultSet.cpp       Mon Jan  2 11:51:39 2006
@@ -260,14 +260,13 @@
       buffer << ((data[currentRow])[columnIndex - 1]).as_int;
     break;
     case TT_SQL_TIMESTAMP:
-      // Gets only the time, forget the nanos
-      buffer << ((data[currentRow])[columnIndex - 1]).as_long;
+      throw NotImplementedException(L"SQL TimeStamp to string conversion not 
implemented yet.");
     break;
     case TT_BLOB:
       throw NotImplementedException(L"Blob to string conversion not 
implemented yet.");
     break;
     case TT_JAVA_SERIALIZABLE:
-      throw NotImplementedException(L"SQL TimeStamp to string conversion not 
implemented yet.");
+      throw NotImplementedException(L"Java Serializable to string conversion 
not implemented yet.");
     break;
     default:
       throw NotImplementedException(L"to string conversion not implemented for 
this type yet.");
@@ -361,14 +360,13 @@
       ret = ((data[currentRow])[columnIndex - 1]).as_int;
     break;
     case TT_SQL_TIMESTAMP:
-      // Gets only the time, forget the nanos
-      ret = (int)(((data[currentRow])[columnIndex - 1]).as_long);
+      throw NotImplementedException(L"SQL TimeStamp to string conversion not 
implemented yet.");
     break;
     case TT_BLOB:
       throw NotImplementedException(L"Blob to int conversion not implemented 
yet.");
     break;
     case TT_JAVA_SERIALIZABLE:
-      throw NotImplementedException(L"SQL TimeStamp to int conversion not 
implemented yet.");
+      throw NotImplementedException(L"Java Serializable to int conversion not 
implemented yet.");
     break;
     default:
       throw NotImplementedException(L"Int conversion not implemented for this 
type yet.");

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to