ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Re: Infer schema name from CacheConfiguration.sqlSchema
Date Mon, 13 Aug 2018 11:25:24 GMT
Hi Pavel,

You are right, we have some non-obvious rules here, mainly legacy. Please
see how schema name is constructed here:
org.apache.ignite.internal.processors.query.QueryUtils#normalizeSchemaName

On Mon, Aug 13, 2018 at 1:55 PM Pavel Tupitsyn <ptupitsyn@apache.org> wrote:

> Igniters,
>
> For .NET LINQ provider[1] I need to be able to infer SQL schema name from
> CacheConfiguration.
>
> Looks like value from CacheConfiguration gets uppercased when not quoted.
>
> So my logic for now is:
>  * if config.SqlSchema == null, use config.name
>  * otherwise, if config.SqlSchema does not contain double quotes, use
> uppercased SqlSchema
>  * otherwise, use config.SqlSchema as is
>
> Is it correct or am I missing something?
>
> Thanks,
> Pavel
> [1] https://issues.apache.org/jira/browse/IGNITE-9116
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message