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

After a Lexical Error due to syntax error , even a simple create table does not work on the same connection.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.2.2.1, 10.3.1.4
    • SQL
    • None

    Description

      connect 'jdbc:derby:wombat;create=true';
      create table t1(a int ) ;
      create table "t2"(a int ) ;
      – this should fail.
      create table foo (a int , \"YEAR\" int ) ;
      – but this should not fail. But failing
      create table t4 ( b int ) ;

      FYI:
      $ java org.apache.derby.tools.ij
      ij version 10.3
      ij> run 'weird1.sql';
      ij> connect 'jdbc:derby:wombat;create=true';
      ij> create table t1(a int ) ;
      0 rows inserted/updated/deleted
      ij> create table "t2"(a int ) ;
      0 rows inserted/updated/deleted
      ij> – this should fail.
      create table foo (a int , \"YEAR\" int ) ;
      ERROR 42X02: Lexical error at line 2, column 28. Encountered: "
      " (92), after
      : "".
      ij> – but this should not fail. But failing
      create table t4 ( b int ) ;
      ERROR 42X01: Syntax error: Encountered "" at line 2, column 21.
      ij>

      Attachments

        1. derby2103_v2.diff
          0.8 kB
          Mayuresh Nirhali
        2. Derby2103_v3.diff
          0.9 kB
          Mayuresh Nirhali
        3. derby2103.diff
          0.5 kB
          Mayuresh Nirhali

        Activity

          People

            mayureshnirhali Mayuresh Nirhali
            tsuresh Suresh Thalamati
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: