Hey,
The number of entries listed in 'select a1, a2, a3, ... an from ...' must
match the result type of your query. The rules are as follows:
- a dbo::ptr to a mapped class takes one
- a primitive type takes one
- a tuple takes as many as there are members
Thus, for example a Query<tuple<ptr<A>, int, ptr<B> > > will need 3 aliases
in the 'select' part of your query:
"select a, i, b from table_A a, table_B b ..."
Regards,
koen
2014-05-28 20:50 GMT+02:00 Muhammad Nasser Al-Noimi <mnno...@gmail.com>:
> Hi all,
>
> I've got a strange error while executing my query:
> Wt: fatal error: Session::query(): too many aliases for result
>
> The query I'm executing is working perfectly outside Wt on SQLite DB, The
> query is using UNION ALL to combine the result of 13 select statements 4
> columns each.
>
> Thanks,
>
>
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest