comp.lang.ada
 help / color / mirror / Atom feed
* GNATCOLL.SQL.SQL_Select - I'm in Left_Join hell
@ 2012-04-19 14:37 Thomas Løcke
  2012-04-21 12:02 ` Stephen Leake
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Løcke @ 2012-04-19 14:37 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-23  7:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19 14:37 GNATCOLL.SQL.SQL_Select - I'm in Left_Join hell Thomas Løcke
2012-04-21 12:02 ` Stephen Leake
2012-04-23  7:33   ` Thomas Løcke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox