The definition is there in variant_row.cpp dtl_variant_t::operator ODBCINT64 () const { ODBCINT64 tmp(0); // gcc 3.2 workaround "long long int()" fails below ...
You are talking about dtl_variant_t::operator ODBCINT64(), but I was talking about variant_field::operator ODBCINT64(). Not the same thing... Also, after I...
This four step guide will give you the foundation you always wanted. Learning the basics in handling stocks. This guide will help anyone, interested in getting...
This four step guide will give you the foundation you always wanted. Learning the basics in handling stocks. This guide will help anyone, interested in getting...
Hi. While you check out the missing ODBC64 functions (or at least I hope so), I found another problem. The following code doesn't work: class VariantRowPrint {...
hrm this is a bad way of finding out this bug. objects that can't be copied should be declared with private copy-constructors/assignments... or be made...
... Yes, and iterators specifically must be copyable. This is one of the fundamentals of the standard library, and an assumption that all algorithms rely on. ...
Ronen, Actually, I don't think this is a sql_iterator copy bug. Instead, your VariantRowPrint class takes a variant_row, wheras your for_each loop is called...
p.p.s. In the constructor for variant_row we actually put an explicit keyword on it so that the compiler should automatically complain if you try to do...
The constructor of variant_row isn't explicit. I've just looked at your code, and it just isn't. But anyway, there's no importance to this thing because I'm...
... the ... take a ... std::for_each calls the functor with '*iter', not with 'iter', so there's a derefencing before the call. The derefencing returns a ...
Hi all, Can you write subqueries using the DTL? E.g.: SELECT a FROM ( SELECT a, b FROM someTable WHERE a < 1000 ) WHERE a < b; The important part is the bit in...
Ok, thanks Corwin, I'll look a bit more closely at the use of sql_iterator. Thanks and regards, [)o IhIL.. ... For more information about Barclays Capital,...
... I have been able to do this now and it works - thanks again. I have to say that the documentation in that area is quite weak: a bit vague, and a number of...
Phil, These are good points you make about the sql_iterator documentation. I agree that it needs some work since we seem to get quite a few questions about it....
This four step guide will give you the foundation you always wanted. Learning the basics in handling stocks. This guide will help anyone, interested in getting...
Hi. I haven't heard from you about the missing ODBCINT64 functions, and about the must-not-be-copied sql_iterator. Was I able to convince you of my point, or...
Hi Yuval, For the ODBCINT64 function I wasn't exactly clear which member of which class you felt was missing since we have a number of ODBCINT64 member ...
... I think I have specified those functions before, but if I wasn't clear enough, I'll galdly specify them again. They are: variant_field::operator...
Hi. I noticed that when I use DynamicDBView<> to select from a table/view, DTL adds the result of SQLSpecialColumns() to my list of fetched fields. What is the...
DynamicDBView always tries to add unique primary key column(s) to the query so that any records you want to update or delete can be precisely identified. If...
I've looked ay the code/documentation and it seems that all I have to do is call myDynamicDBView.SetAutoKey(""); and this feature will be disabled. Am I right?...
Ronen, In order to suppress automatic key lookup you need to set the key mode when you construct the DBView. You should set the keyMode to USE_PK_ONLY or...
This four step guide will give you the foundation you always wanted. Learning the basics in handling stocks. This guide will help anyone, interested in getting...
Hi. I've followed the example titles "Example: Reading a set of records from an Oracle stored procedure." found in the file dtl/docs/sql_iterator.htm to call...
Ronen, You are indeed doing something wrong. sql_iterator will use prepare/execute - but it can't prepare if you recreate the iterator every time! You want ...
Another problem I encountered: I have the following stored procedure: TYPE result_set IS REF CURSOR; PROCEDURE my_proc_out (a_name NUMBER, a_value VARCHAR,...