Home » U++ Library support » U++ SQL » SqlArray Join
Re: SqlArray Join [message #4115 is a reply to message #4112] |
Fri, 21 July 2006 17:16   |
|
luzr wrote on Fri, 21 July 2006 08:33 | OK, I hope I have found it.
| Thanks so much
luzr | Anyway, the bug is caused by wrong placement of
You are performing the query _before_ you join with detail. Query sets the cursor to the first row, means detail will not get loaded for this row....
Putting it at the end of constructor fixed the problem.
| Makes sense now 
luzr | I have taken the oportunity a tried to improve the code a bit:
| Wow, thanks a million.
luzr | Most application do not use more than single DB engine, therefore it is a good ideal to define default session - you do not have to se it everywhere ("SQL=session").
|
Makes sense, good tip.
luzr | Opening session in constructor is really bad thing 
|
I guess this is also because there will only be one DB session but possibly multiple instances of my app window, also performance.
luzr | BTW, is your database schema fixed in existing .db file, or is it a part of application you are developing? U++ has nice support for schemas... I would be happy to help you with that...
|
I have lots of data that is currently in a spreadsheet. I will use php or perl to parse it out into a usable CSV or something similar. The actual structure of the DB can still be changed. The reason I did not opt for schemas was because I thought it might add a little extra (code size, memory usage) to the final product. If all the processing is pre-compile, it might be beneficial to add it in here. Advice?
luzr | ...because, in fact, it would not be a bad idea to finally add some nice SQL example to U++ 
|
I'll be glad to offer my app as a tutorial and help write it.
Thanks again
|
|
|
 |
|
SqlArray Join
By: rbmatt on Wed, 19 July 2006 02:47
|
 |
|
Re: SqlArray Join
By: rbmatt on Wed, 19 July 2006 07:27
|
 |
|
Re: SqlArray Join
By: mirek on Wed, 19 July 2006 11:11
|
 |
|
Re: SqlArray Join
By: rbmatt on Wed, 19 July 2006 17:07
|
 |
|
Re: SqlArray Join
By: mirek on Wed, 19 July 2006 17:13
|
 |
|
Re: SqlArray Join
By: rbmatt on Wed, 19 July 2006 18:36
|
 |
|
Re: SqlArray Join
By: mirek on Wed, 19 July 2006 21:17
|
 |
|
Re: SqlArray Join
By: rbmatt on Wed, 19 July 2006 22:53
|
 |
|
Re: SqlArray Join
By: mirek on Wed, 19 July 2006 23:48
|
 |
|
Re: SqlArray Join
By: rbmatt on Thu, 20 July 2006 00:09
|
 |
|
Re: SqlArray Join
By: rbmatt on Fri, 21 July 2006 06:35
|
 |
|
Re: SqlArray Join
By: mirek on Fri, 21 July 2006 14:33
|
 |
|
Re: SqlArray Join
By: rbmatt on Fri, 21 July 2006 17:16
|
 |
|
Re: SqlArray Join
By: rbmatt on Sat, 22 July 2006 07:42
|
 |
|
Re: SqlArray Join
By: forlano on Sat, 10 March 2007 18:44
|
 |
|
Re: SqlArray Join
By: mirek on Sun, 23 July 2006 19:15
|
 |
|
Re: SqlArray Join
By: rbmatt on Sun, 23 July 2006 19:49
|
Goto Forum:
Current Time: Fri Jul 18 05:41:34 CEST 2025
Total time taken to generate the page: 0.04014 seconds
|