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

Wrong syntax in identifier chain returned by SynonymAliasInfo.toString()

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.7.1.1
    • 10.8.1.2
    • SQL
    • None

    Description

      SynonymAliasInfo.toString() doesn't quote identifiers correctly. Example:

      ij> create table """"(x int);
      0 rows inserted/updated/deleted
      ij> create synonym s1 for """";
      0 rows inserted/updated/deleted
      ij> select aliasinfo from sys.sysaliases where alias = 'S1';
      ALIASINFO
      ---------------
      "APP"."""

      1 row selected

      The returned value should say:

      "APP".""""

      That is, there should be one more double quote character.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            knutanders Knut Anders Hatlen
            knutanders Knut Anders Hatlen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment