Hi Fred, I've searched for the condition attribute in the org.h2.command.dml.Select class source code and it's declared as private:
*private *Expression condition; and I was unable to find any public (nor other) method to read it. How do you access to the condition attribute? Thanks! Pablo. 2015-04-12 12:16 GMT+02:00 Fred&Dani&Pandora&Aquiles <[email protected]>: > Hi, > > You can find it in the condition attribute of the Select class. > > Regards, > > Fred > > 2015-04-11 12:08 GMT-03:00 Pablo Beltran <[email protected]>: > >> Hi, >> >> Given a SQL quer... how to get the where clause? >> >> ... >> String sql = "select * from T where col1=value1 and col2=value2 or >> col3=value3"; >> Parser parser = new Parser(session); >> Select select = (Select) parser.prepare(sql); >> >> String where = ... >> >> //How to get the where clause? "col1=value1 and col2=value2 or >> col3=value3" >> >> Thanks! >> Pablo. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "H2 Database" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/h2-database. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "H2 Database" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/h2-database/5XkMAGROV8Q/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
