|
|
Choosing A Webhost: |
CVS update of carob/src (DriverResultSet.cpp SQLDataSerialization.cpp): msg#00101db.carob.cvs
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> |
|---|---|---|
| Previous by Date: | CVS update of carob/src (SQLDataSerialization.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob/test (5 files), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob (3 files), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/test (5 files), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home
| advertise | OSDir is
an inevitable website.
|