Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS update of carob/src (DriverResultSet.cpp SQLDataSerialization.cpp): msg#00101

db.carob.cvs

Subject: CVS update of carob/src (DriverResultSet.cpp SQLDataSerialization.cpp)

Date: Friday, February 24, 2006 @ 19:06:00
Author: gilles
Path: /cvsroot/carob/carob/src

Modified: DriverResultSet.cpp (1.41 -> 1.42) SQLDataSerialization.cpp
(1.28 -> 1.29)

Re-enabled BigDecimal serialization and getAsString-ing.
For now, we cannot do anything with the data (big decimal class is not
finished) but as we are able to receive it, it is ok to enable it


--------------------------+
DriverResultSet.cpp | 6 +++++-
SQLDataSerialization.cpp | 2 --
2 files changed, 5 insertions(+), 3 deletions(-)


Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.41 carob/src/DriverResultSet.cpp:1.42
--- carob/src/DriverResultSet.cpp:1.41 Fri Feb 24 18:34:19 2006
+++ carob/src/DriverResultSet.cpp Fri Feb 24 19:06:00 2006
@@ -21,6 +21,7 @@

#include "DriverResultSet.hpp"

+#include "BigDecimal.hpp"
#include "Connection.hpp"
#include "TypeTag.hpp"
#include "Statement.hpp"
@@ -258,7 +259,10 @@
buffer << *(static_cast<wstring*>((data[currentRow][columnIndex -
1].as_other)));
break;
case TT_BIGDECIMAL:
- throw NotImplementedException(L"BigDecimal to string conversion not
implemented yet.");
+// throw NotImplementedException(L"BigDecimal to string conversion not
implemented yet.");
+ //let's use the dummy function, open for debugging...
+ BigDecimal* bd = (static_cast<BigDecimal*>((data[currentRow][columnIndex
- 1].as_other)));
+ buffer << static_cast<wstring>(*bd);
break;
case TT_BOOLEAN:
buffer << ((data[currentRow])[columnIndex - 1]).as_bool;
Index: carob/src/SQLDataSerialization.cpp
diff -u carob/src/SQLDataSerialization.cpp:1.28
carob/src/SQLDataSerialization.cpp:1.29
--- carob/src/SQLDataSerialization.cpp:1.28 Fri Feb 24 18:43:52 2006
+++ carob/src/SQLDataSerialization.cpp Fri Feb 24 19:06:00 2006
@@ -284,8 +284,6 @@
return stringDeserializer;
break;
case TT_BIGDECIMAL:
- // comment out the throw() line below to test the new bigdecimal
serialization
- throw NotImplementedException(L"BigDecimal serialization not enabled
yet: waiting for sequoia commit");
return bigDecimalDeserializer;
break;
case TT_BOOLEAN:


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo