Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2028 - 2057 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2028
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_yuval
Offline Send Email
Jun 4, 2006
8:34 pm
2029
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 ...
Corwin Joy
corwinjoy
Offline Send Email
Jun 5, 2006
6:38 pm
2030
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,...
ronen_yuval
Offline Send Email
Jun 6, 2006
9:06 am
2031
Hmm. What database are you using? Corwin ... From: "Michael Lin" <michael@...> To: "Corwin Joy" <cjoy@...> Cc:...
Corwin Joy
corwinjoy
Offline Send Email
Jun 6, 2006
5:36 pm
2032
There is a requirement in ODBC that variable length strings have to be the last parameter. Here your last parameter is instead the result_set which may be the...
Corwin Joy
corwinjoy
Offline Send Email
Jun 7, 2006
8:41 am
2033
I looked in dtl\docs\BoundIO.htm and saw that the ETI_Map is supposed to support tcstring, but it didn't work. I changed the line params[1] << row._string(); ...
ronen_yuval
Offline Send Email
Jun 7, 2006
3:06 pm
2034
Hi Ronen, I fact you are correct we don't support fixed strings in variant_row due to the fact that I didn't get around to writing code to figure out the size...
Corwin Joy
corwinjoy
Offline Send Email
Jun 8, 2006
2:47 am
2035
... variant_row due to the fact that I didn't get around to writing code to figure out the size of the fixed string and dyanamically resize the buffer as...
ronen_yuval
Offline Send Email
Jun 11, 2006
9:05 am
2036
Now that I hope I solved the string problem, I'm trying this, and it doesn't work as I expected. I'm using the exact code and still there's no SQLPrepare, only...
ronen_yuval
Offline Send Email
Jun 11, 2006
9:13 am
2037
Hi Ronen, It could be that once you assign params we force a re-execute out of caution? One way to check would be to examine the it.stmt variable. This should...
Corwin Joy
corwinjoy
Offline Send Email
Jun 11, 2006
10:23 pm
2038
Hi again, In my code, I'm calling DBView::begin(). begin() calls the constructor of DB_select_iterator. This constructor calls the constructor of...
ronen_yuval
Offline Send Email
Jun 12, 2006
7:31 pm
2039
Hi Yuval, I'd have to trace the code to check, but try just overriding it to set bPrepare to true for your iterator. (Or just set bPrepare to true in the...
Corwin Joy
corwinjoy
Offline Send Email
Jun 13, 2006
9:02 am
2040
Hi, I have tried to convert/use the DTL in VS2005 (using UNICODE) and have found the following issues (so far): * Line 448 in BoundIO.h need to be commented...
johannes_stroemberg
johannes_str...
Offline Send Email
Jun 13, 2006
2:06 pm
2041
I also get the following error: 'type cast' : conversion from 'SDWORD' to 'SQLPOINTER' of greater size at SQLSetStmtAttr(hstmt, Attribute, (SQLPOINTER)...
johannes_stroemberg
johannes_str...
Offline Send Email
Jun 13, 2006
2:38 pm
2042
OK. Please send me a zip of the changed files when you are done, I will take a look and check into cvs. I'm a bit surprised you are getting this many since I...
Corwin Joy
corwinjoy
Offline Send Email
Jun 14, 2006
10:09 am
2043
I added the line it.GetStmt().SetPrepare(true); after the line DBView<variant_row, variant_row>::sql_iterator it = view.begin(), last = view.end(); and it...
ronen_yuval
Offline Send Email
Jun 14, 2006
5:57 pm
2044
Great! Thanks for letting me know. ... From: ronen_yuval <ronen_yuval@...> Date: Wednesday, June 14, 2006 12:58 pm Subject: Re: [DTL] Can't use prepared...
cjoy@...
corwinjoy
Offline Send Email
Jun 14, 2006
8:44 pm
2045
Hi. When Oracle's stored procedure throws an exception, there's an integer error code, and a string description. It looks as if dtl::RootExcpetion holds only...
ronen_yuval
Offline Send Email
Jun 15, 2006
4:31 pm
2046
I'm not sure. Maybe oracle returns the error code as a parameter? We would only log the ODBC error code. Corwin ... From: ronen_yuval To:...
Corwin Joy
corwinjoy
Offline Send Email
Jun 18, 2006
8:29 pm
2047
It seems that I can't call a stored procedure that doesn't have a ref- cursor. The DTL code has a 'if (this->boundIOs.NumColumns() < 1)' check in method...
ronen_yuval
Offline Send Email
Jul 17, 2006
5:38 pm
2048
You can call a sql_iterator that doesn't return a cursor. Just assign to the iterator or increment it to force an execution. (The skipped statment there is...
Corwin Joy
corwinjoy
Offline Send Email
Jul 18, 2006
2:55 am
2049
What exactly do you mean by "assign to the iterator or increment it"? I tried doing typedef DBView<variant_row, variant_row> View; View view("{CALL...
ronen_yuval
Offline Send Email
Jul 19, 2006
3:53 pm
2050
Since this is a C++ crowd list, I thought people might be interested to learn about a great C++ general purpose library that just went free (under Boost...
aleskx
Offline Send Email
Jul 22, 2006
8:27 am
2051
Close. Try variant_row params = iter.Params(); ... *iter = params; ... From: ronen_yuval To: DatabaseTemplateLibrary@yahoogroups.com Sent: Wednesday, July 19,...
Corwin Joy
corwinjoy
Offline Send Email
Jul 22, 2006
11:16 pm
2052
Hello, I hope this is a trivial question to answer - but it's driving me nuts! I have the small example program quoted below. It does what it is supposed to do...
buschnick
Offline Send Email
Jul 25, 2006
10:07 am
2053
Hello, I'm runing sql procedure in prepared procedure mode. The sql procedure defined something like: PROCEDURE x(param1 VARCHAR2, param2 VARCHAR2 DEFAULT...
sjulia_st
Offline Send Email
Jul 25, 2006
12:04 pm
2054
Doesn't work :-( It managed to get the DTL into an endless loop... ... it"? ... execution. ... a ... 1)' ... the...
ronen_yuval
Offline Send Email
Jul 25, 2006
5:30 pm
2055
Hi, I can think of a few things to try here. 1. Add a Commit() call after your inserts. By default DTL does not force a commit to let you control exceptions....
Corwin Joy
corwinjoy
Offline Send Email
Jul 26, 2006
2:31 am
2056
Hmm. Maybe I wasn't clear enough. You would need to have something like typedef DBView<variant_row, variant_row> View; View view("{CALL my_package.my_proc(?,...
Corwin Joy
corwinjoy
Offline Send Email
Jul 26, 2006
3:28 am
2057
ODBC has some issues with variable length strings in that they have to be the last arguments passed as parameters. Two ways to fix this: 1. Use fixed length...
Corwin Joy
corwinjoy
Offline Send Email
Jul 26, 2006
4:32 am
Messages 2028 - 2057 of 2479   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help