Hi, I got some questions about limitin the numbers of rows returned by the Resultset. code: dtl::DynamicDBView<> * pDynView = new dtl::DynamicDBView(sql,""); ...
Jens Weller
JensWeller@...
Mar 1, 2005 9:51 am
1393
For future reference, the Boost.org library has had to deal with this problem, and has managed to come up with solid solutions. Its probably not as available...
... From: Jens Weller <JensWeller@...> Date: Tuesday, March 1, 2005 3:51 am Subject: [DTL] Rowreturnlimit - SetStmtAttr ... We don't have a method to do...
* Version 3.6.8; Released Feb 28, 2005 * ***Bugfixes*** * Fixed bug in RandomDBView that caused null field flags to not be correctly passed to SelValidate -...
Well, ignoring template-based solutions etc (which will still need a chunk of repetitive code), their solution is to utilise the C preprocessor's power to do...
I just committed a couple of minor bug fixes for dtl_enum and nullable. I also fixed a couple of annoying little warnings that my g++ keeps giving me. ...
... What were the bugs in the old version? ... Yeah - that's dead. ... I guess I will just have to take a look to see what you have changed here. You might...
... the assignment-operators were faulty, if you did nullable<int> x = 20; x = x; it would set x to NULL. And i have to specify this->first instead of first in...
[Sorry for the previous double-postings] Hi, ... a ... I'm not sure whether I like C-preprocessor metaprogramming. It's impressive that it's possible, but I...
... My original problem wasn't related to the order of colums in the insert statement, so this order is probably not as important as I thought it was. Probably...
Maybe if there was a way to use template metaprogramming recursing on N (macros might still be needed to an extent, but embody the logic is something like that...
Whether the order of columns matters is driver dependent. Some ODBC drivers require that any columns fetched with SQLGet data be at the end of the list. (Same...
... I also agree that the perl code - that i have not checked - is more readable than using a library that you haven't ever seen before. however, i do believe...
... I also agree that the perl code - that i have not checked - is more readable than using a library that you haven't ever seen before. however, i do believe...
The Title already describes the problem: I have a table (Name, Surname, ID) for Employees. I am doing a select * from Employee with an DynamicDBView. Thats...
Jens Weller
JensWeller@...
Mar 7, 2005 8:31 am
1409
... should be: for(;sqlit != view->end();++sqlit) its faster, more efficient and more correct. It might even solve your problem, tho I doubt it....
Ok, it's done, i found my error. It works fine, if i take for the 2nd Loop an nother iterator: dtl::DynamicDBView<>::sql_iterator sqlit = view->begin(); ...
Jens Weller
JensWeller@...
Mar 7, 2005 8:53 am
1411
... I have some numbers in my Resultset, and doing a second sql_it = view->begin(); on an iterator makes them to 0. ... I already did this ;) As I wrote...
Jens Weller
JensWeller@...
Mar 7, 2005 9:03 am
1412
Not sure why you are getting this. What database and driver are you using?...
... I am using Teradata Database (NCR Product), but its also with access the same problem. If you read the footnotes for sql_iterator you might get a clue of...
jens weller
JensWeller@...
Mar 7, 2005 5:06 pm
1414
If I connect to a Teradata Database, and make a simple select time; I get an error that the type is unknown in Function Map_SQL_types_to_C(SWORD type). I...
Jens Weller
JensWeller@...
Mar 9, 2005 6:59 am
1415
OK. It looks like the sql iterator assignment operator has a bug here. I propose the following fix - I plan to check this in once I have carried out further...
Corwin, I needed strict casting to exact datatype fetched from the database, so I've put following member functions in my variant_row: //strict casting, only...
@@SAP/Oracle11i Training Online Available!! we are a ERP training center,Job Oriented Training Available!! My Yahoo Messenger ID:erphouse (or email to...
Hi, I am running version 3.5.1 of DTL. I ran into a memory leak. Here is the valgrind output. I tried to make select iterator as static and it still leaks....
Looking at the vgrind output the problem here looks to be your ODBC implementation not DTL. If you look the potential leak is being done by SQLAllocHandle...
This could also be a 1 time memory allocation that is not freed on destruction. This is technically not memory leak because it will not continue to increase...
I have just downloaded 3.6.8 of DTL and successfully compiled the library using BCB6. When I try to compile the examples I get a error with resulting from the...