Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8152

Forbid empty sql schema name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • sql

    Description

      Currently we allow empty schema name (quoted) in cache configuration
      org.apache.ignite.configuration.CacheConfiguration#setSqlSchema :

      When sqlSchema is not specified, quoted cacheName is used instead.
      
      sqlSchema could not be an empty string. Has to be "\"\"" instead.
      
      Params:
      sqlSchema - Schema name for current cache according to SQL ANSI-99. Should not be null.
      

      Specifying schema \"\" results in empty string schema name.
      No schema in sql query is treated as PUBLIC, but \"\" is regular schema name.

      It's better to disallow usage of \"\" schema

      Attachments

        Issue Links

          Activity

            People

              Aleksei_Litsov Alexey
              pkouznet Pavel Kuznetsov
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m