Le 31/07/2014 18:04, Arnaud Thimel a écrit : > Hi, > > ( I'm new to the mailing-list, sorry if I do not follow the expectations. ) > > I'm using H2 1.3.176 together with Hibernate 4.3.6.Final. > I'm having a bug with a particular Hibernate query involving IN with an enum > list. [1] > > I thought Hibernate was involved in this issue, but it seems that it comes > from H2. > > You will find attached two tests in tests.java. > > The first one (testColumnMetaDataWithEquals) works fine. > It creates a PreparedStatement ( "SELECT ... WHERE someColumn = ?" ) then uses > "preparedStmt.getParameterMetaData().getParameterType(1)" which returns the > expected value. > > The second one (testColumnMetaDataWithIn) is doing exactly the same thing > except the WHERE clause is using IN ( "SELECT ... WHERE someColumn IN ( ? , ? > ) "). > Then "preparedStmt.getParameterMetaData().getParameterType(1)" does not return > the expected value. > > I wrote a patch for "ConditionIn" based on the "Comparison" source code. > This patch proposal is attached, please let me know if it is acceptable. > > Best regards, > Arnaud > > > [1] Is it off topic, but the Hibernate query looks like " FROM SomeEntity > WHERE someColumn IN ( :enum0 , :enum1 ) " Hi,
Any news about this patch ? Regards. -- Éric Chatellier - www.codelutin.com - 02.40.50.29.28 -- 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.
