Re: [h2] Re: questions about case sensitivity

2023-01-15 Thread Andreas Reichel
On Sun, 2023-01-15 at 22:15 -0800, AndyGo wrote: > If I'm writing all SQL by hand then personally, I'm going to always > use unquoted values for table/view names. Working with Oracle, H2, MS SQL Server and DB2, I think best practise was to write SQL Keywords "lower case" and Identifiers "upper

Re: [h2] Re: questions about case sensitivity

2023-01-15 Thread Andreas Reichel
Greetings Andy. On Sun, 2023-01-15 at 22:15 -0800, AndyGo wrote: > I'm going to always use unquoted values for table/view names.  This is not RDBMS agnostic and will get you into big trouble when switching from Oracle to Sybase or MS SQL Server or vice versa.  > I've used H2 successfully in

[h2] Re: questions about case sensitivity

2023-01-15 Thread AndyGo
Thanks for the reply andrei. It's not a matter of trying to shoot myself in the foot. If I'm writing all SQL by hand then personally, I'm going to always use unquoted values for table/view names. However, various ORMs and query tools/frameworks have all kinds of different behaviors. I've used

[h2] Re: questions about case sensitivity

2023-01-15 Thread Andrei Tokar
Hi Andy, I wonder, what are your expectations in such scenario? If you are looking for a way to shoot yourself in the foot, I am sure H2 will present multiple opportunities for that. Does it really matter if it end up with "table not found" or will select from one or the other table, at random?

[h2] Re: questions about case sensitivity

2023-01-14 Thread AndyGo
Thanks. Appreciate the quick and comprehensive response. Can you explain this a bit more: "It is possible to specify them in the default Regular compatibility mode " Just curious, since the settings can't persist... what would happen if, in default mode, I created MyTable and also "mytable"

[h2] Re: questions about case sensitivity

2023-01-13 Thread Evgenij Ryazanov
Hello! These settings aren't related to each other. IGNORE_CASE is about *data types* and their *values*. It replaces CHARACTER VARYING (VARCHAR) columns in DDL commands with VARCHAR_IGNORECASE data type. This legacy setting should never be used, it is much better to specify some