From: "Thomas Løcke" <thomas@12boo.net>
Subject: GNATCOLL.SQL.SQL_Select - I'm in Left_Join hell
Date: Thu, 19 Apr 2012 16:37:49 +0200
Date: 2012-04-19T16:37:49+02:00 [thread overview]
Message-ID: <4f90233d$0$282$14726298@news.sunsite.dk> (raw)
Hey all,
I'm hoping some GNATCOLL.SQL specialist can help me write a SQL_Select
call that isn't as horribly ugly as the one I've currently come up with.
The SQL query I'm frantically trying to create is this:
https://gist.github.com/2421273
A fairly straightforward query with a bunch of JOIN's. Nothing overly
complicated and very easy to read.
Next lets take a look at the GNATCOLL.SQL.SQL_Select call I've come up
with:
https://gist.github.com/2421241
It is, IMHO, very unreadable with all those nested Left_Join calls. Is
there a better/prettier way, without falling back to embedding an SQL
string in the Ada source?
The SQL generated by the above SQL_Select call works fine, it's just
that I'm finding it very hard to read.
Any and all suggestions are more than welcome!
:o)
--
Thomas L�cke | thomas@12boo.net | http://12boo.net
next reply other threads:[~2012-04-19 14:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 14:37 Thomas Løcke [this message]
2012-04-21 12:02 ` GNATCOLL.SQL.SQL_Select - I'm in Left_Join hell Stephen Leake
2012-04-23 7:33 ` Thomas Løcke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox