Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4644

Sql query "select * from tablename where column1 in (?,?)" never ends when no parameter value have been set to PreparedStatement.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 10.5.3.0
    • None
    • JDBC
    • None
    • window xp; jdk1.5
    • Normal

    Description

      Reproduce steps:
      1. Create a PreparedStatement with sql text "select * from tablename where column1 in (?,?)".
      2. Call JDBC PreparedStatement .executeQuery( ) to execute this statement and it never stop. I found my CPU Usage is 100% after this happened.

      More info:
      1. The SQL like "select * from tablename where column1 in " can return an empty result set
      2. If call PreparedStatement .setInt( 1,1 ) to set a parameter value the query can work

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dlut_zxf xiaofeng.zhang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: