[h2] Re: SQLGrammarException in Maven JUnit Tests

2024-07-21 Thread Nathan Joyes
rved word in the SQL Standard and H2, it cannot be used as > unquoted identifier. > > https://h2database.com/html/advanced.html#keywords -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop re

Re: [h2] Maven Unit Test fails on Illegal Identifier

2024-07-21 Thread Noel Grandin
The "[*]" indicates where the problem lies in the statement. "value" is a reserved identifier. so you will either need to change that column name, or surround it with quotes -- You received this message because you are subscribed to the Google Groups "H2 Database&qu

[h2] Re: SQLGrammarException in Maven JUnit Tests

2024-07-21 Thread Evgenij Ryazanov
Hi! VALUE is a reserved word in the SQL Standard and H2, it cannot be used as unquoted identifier. https://h2database.com/html/advanced.html#keywords -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this grou

[h2] SQLGrammarException in Maven JUnit Tests

2024-07-21 Thread Nathan Joyes
Utilizing H2 for my project's JUnit tests, I am currently seeing an exception thrown in a number of tests run by Maven, but not when run in Eclipse as a JUnit test. Exception is: [INFO] Running ca.joyes.sportssjef.service.scheduled.SendApprovalRequestNotificationServiceTest 22:13:51.052 [main

[h2] Maven Unit Test fails on Illegal Identifier

2024-07-21 Thread Nathan Joyes
I am currently using H2 as the database engine when running unit tests for my project. For a number of my tests it has started failing when the tests are run as part of my deployment packaging step (Maven), however the same tests will pass when run in Eclipse as a JUnit Test. Stack trace from

Re: [h2] How to get distinct values from an array column?

2024-07-20 Thread 'Peter Borissow' via H2 Database
That cte is a cool idea! In the end, I wrote my own function to get the tags. Thanks for everyone's input. Best,Peter -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [h2] How to get distinct values from an array column?

2024-07-20 Thread Evgenij Ryazanov
tml/commands.html#create_aggregate -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web

Re: [h2] How to get distinct values from an array column?

2024-07-20 Thread 'Peter Borissow' via H2 Database
)); Is the same as this: select tags from company; -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this

Re: [h2] How to get distinct values from an array column?

2024-07-20 Thread Andreas Reichel
Something like this: SELECT Array_Agg( a ) FROM ( SELECT ARRAY [ 1, 2, 3] a UNION SELECT ARRAY [ 2, 3, 4] a ) ; Unfortunately, H2 does not seem to support any Flatten or Concat- Aggregate function for arrays. And UNNEST() is not deep. So I am indeed not sure if this can

Re: [h2] How to get distinct values from an array column?

2024-07-20 Thread Andreas Reichel
, 'Peter Borissow' via H2 Database wrote: > Hello, >     I have a simple query in PostgreSQL that I am trying to emulate > in H2: > SELECT DISTINCT(unnest(tags)) as tags FROM company; > > The "tags" column is a varchar array. The query returns a unique list >

[h2] How to get distinct values from an array column?

2024-07-20 Thread 'Peter Borissow' via H2 Database
Hello,    I have a simple query in PostgreSQL that I am trying to emulate in H2:SELECT DISTINCT(unnest(tags)) as tags FROM company; The "tags" column is a varchar array. The query returns a unique list of tags from the "tags" column. When I try to run the same query

[h2] Re: Issue with Java Heap Space and H2 Database

2024-07-19 Thread Andrei Tokar
Hi Mahima, You did not even mention, if you are usin in-memory or persistent database, your connection URL should be the first thing to post. Database version would be helpful too. If you suspect memory leak - H2 is just another java library, so follow standard best practices to detect JVM

Re: [h2] Re: H2DB connection is printing the user name password in the logs when enabled Debug mode

2024-07-18 Thread 'Balamurali Krishna Ippili' via H2 Database
, usually there are > separate methods or parameters for user name and password. > > H2's own org.h2.jdbcx.JdbcDataSource can log JDBC URLs and user names, > but it doesn't log passwords specified with setPassword() method. > > JdbcConnectionSource is not a part of H2, so you should read its &

[h2] Re: H2DB connection is printing the user name password in the logs when enabled Debug mode

2024-07-18 Thread Evgenij Ryazanov
Hi! Passwords shouldn't be specified in the JDBC URL, usually there are separate methods or parameters for user name and password. H2's own org.h2.jdbcx.JdbcDataSource can log JDBC URLs and user names, but it doesn't log passwords specified with setPassword() method. JdbcConnectionSource

[h2] H2DB connection is printing the user name password in the logs when enabled Debug mode

2024-07-18 Thread 'Balamurali Krishna Ippili' via H2 Database
, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an em

Re: [h2] H2 Database Engine: New version 2.3.230 released

2024-07-15 Thread Andreas Reichel
Thank you so much, H2 team! We have done our part and integrated it into the H2 Migration Tool already: https://manticore-projects.com/H2MigrationTool/index.html All the best Andreas On Sun, 2024-07-14 at 18:57 -0400, Andrei Tokar wrote: > Hello, > > A new version 2.3.230 of H2 is

[h2] H2 Database Engine: New version 2.3.230 released

2024-07-14 Thread Andrei Tokar
Hello, A new version 2.3.230 of H2 is available at http://www.h2database.com (you may have to click 'Refresh') and https://github.com/h2database/h2database/releases/tag/version-2.3.230 For details, see the 'Change Log' at http://www.h2database.com/html/changelog.html New artefacts

[h2] Issue on how H2 handles storing LOBs

2024-07-09 Thread Khairul Anwar
Hi all, we are using the default H2 database that came with the open source WSO2 Enterprise Service Bus (ESB) application. Our H2 DB is setup in embedded mode as follows: xml WSO2_CARBON_DB The datasource used for registry and user manager jdbc/WSO2CarbonDB

[h2] username: sa is not read when SPRING_DATASOURCE_USERNAME is defined

2024-06-20 Thread Manas Marthi
:8080/h2-console. when I debug and step through h2 code, I realized it defined a username and password using the above environment variables instead of sa Is this expected behavior or bug? thanks Manas -- You received this message because you are subscribed to the Google Groups "H2 Dat

[h2] MVStore map version semantic changes 1.4.199 -> 2.2.224

2024-06-17 Thread Rok Yu
ct...args) { System.out.println(m.formatted(args)); } private static void printMapVersion(MVMap map,long version) { MVMap mapv=map.openVersion(version); println("m1.v%d=%d %d",version,mapv.getVersion(),mapv.get("a")); } } -- You recei

[h2] Re: Changes to MVStore.getMetaMap() does not trigger commit()

2024-06-11 Thread Chris van Hinsbergen
ges, but the metadata IS stored. >> >> Is this intended behavior? >> >> Thanks! >> >> Chris >> > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop rece

[h2] Re: Changes to MVStore.getMetaMap() does not trigger commit()

2024-06-10 Thread Andrei Tokar
to have > unsaved changes, but the metadata IS stored. > > Is this intended behavior? > > Thanks! > > Chris > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving email

[h2] Changes to MVStore.getMetaMap() does not trigger commit()

2024-06-10 Thread Chris van Hinsbergen
message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-da

[h2] Re: what data is removed during DEFRAG

2024-06-09 Thread Yusuf Welder
We recently started using "CREATE MEMORY LOCAL TEMPORARY TABLE IF NOT >> EXISTS" more frequently. Could this be related to the problem? >> > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this gr

[h2] Help donase

2024-06-09 Thread Yusuf Welder
paypal.me/yusufwelding -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web vi

[h2] Re: what data is removed during DEFRAG

2024-06-08 Thread Andrei Tokar
his message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/dbd67b4e-e095-4548-bed3-55122e4feb9en%40googlegroups.com.

[h2] what data is removed during DEFRAG

2024-06-03 Thread Rinse Lemstra
ecause you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/4d8

[h2] When will a new version be released?

2024-05-31 Thread 'Olaf van der Meer' via H2 Database
Hi, The last release is from Sept 2023? I have seen there are some patches since than. Does anyone know when a new versie will be released? Thanks, Olaf -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this grou

[h2] Re: How to tell .db version without opening it

2024-05-22 Thread 'Doug Merrett' via H2 Database
string contains comma-separated properties in the > name:value format. You can check value of the property format. > > 1 was used by old historic H2 1.4 or H2 1.3. There is no reliable and easy > way to determine a database version from their files. There is a CREATE > BUILD 196 or

Re: [h2] Can aliases made by CREATE ALIAS , be retrieved by SQL?

2024-05-22 Thread 'Christian Buchegger' via H2 Database
CREATE ALIAS , be retrieved by SQL? > > could not find any documentation about this > > > > > also seached the system tables without any result. > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To u

[h2] Re: How to tell .db version without opening it

2024-05-22 Thread Evgenij Ryazanov
by old historic H2 1.4 or H2 1.3. There is no reliable and easy way to determine a database version from their files. There is a CREATE BUILD 196 or something like it in the file, 196 means H2 1.4.196. 2 was used by H2 2.0/2.1. Because H2 2.1.214 can read all these files, you can safely pass 214

[h2] How to tell .db version without opening it

2024-05-21 Thread 'Doug Merrett' via H2 Database
Hi, I am upgrading my app that uses H2 as the database. Some people using it will not move to version 2 of my app and may go straight to version 3. Since I am changing the H2 version with each release of my app, when I connect to an old version of the database, I get the 90048 error

[h2] Re: Error during database recover

2024-05-14 Thread 'Olaf van der Meer' via H2 Database
the h2.sql dump to recover the database. Does anyone has got know when a new release will be released, so we can use this patch? The last release is from Sept 2023? Thanks for you reply in advance! Olaf Op maandag 13 mei 2024 om 11:51:07 UTC+2 schreef Olaf van der Meer: > Hi, > > I

[h2] Error during database recover

2024-05-13 Thread 'Olaf van der Meer' via H2 Database
run further and the recover produces an h2.sql dump. Is this a good fix for this issue? I was also wondering where wondering where the mv.txt dump file is used for. I only need the h2.sql dump to recover the database. -- You received this message because you are subscribed to the Google Groups

Re: [h2] LOCK TABLE syntax doesn't work with H2

2024-05-09 Thread Noel Grandin
On 5/8/2024 6:31 PM, Bruce Visscher wrote: On stack overflow, Thomas Mueller <https://stackoverflow.com/users/382763/thomas-muelle> wrote: The Oracle lock table statement doesn't work in H2.  The suggested select...for update <https://stackoverflow.com/a/71210443/3604905>

[h2] LOCK TABLE syntax doesn't work with H2

2024-05-08 Thread Bruce Visscher
On stack overflow, Thomas Mueller <https://stackoverflow.com/users/382763/thomas-muelle> wrote: > I'm one of the authors of H2. If something doesn't work, please post it on the H2 mailing list. Is this the H2 mailing list? The Oracle lock table statement doesn't work in H2. The

Re: [h2] Linked table issues (autocommit, prepared statement) ,modifications and licensing

2024-05-03 Thread Noel Grandin
On 5/1/2024 10:10 PM, Marat Akselrod wrote: And if it can take a long, I want to understand if I'm allowed(by license) to provide to my customers my modified version meanwhile ? Yes you are -- You received this message because you are subscribed to the Google Groups "H2 Dat

[h2] Re: Can aliases made by CREATE ALIAS , be retrieved by SQL?

2024-05-02 Thread Evgenij Ryazanov
Hello! In H2 2.* you can read them from standard INFORMATION_SCHEMA.ROUTINES and INFORMATION_SCHEMA.PARAMETERS views. In historic versions of H2 you need non-standard INFORMATION_SCHEMA.FUNCTION_ALIASES and INFORMATION_SCHEMA.FUNCTION_COLUMNS tables. -- You received this message because you

[h2] Can aliases made by CREATE ALIAS , be retrieved by SQL?

2024-05-02 Thread Rinse Lemstra
Can aliases made by CREATE ALIAS , be retrieved by SQL? could not find any documentation about this also seached the system tables without any result. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from

[h2] Linked table issues (autocommit, prepared statement) ,modifications and licensing

2024-05-02 Thread Marat Akselrod
Hello, I'd like to use H2 linked table function to data migration in way insert into "linked target" as select from "linked source". It will be very helpfull for our customers. Technically it works , but I found some problems/issues(or maybe my misaunderstanidg) 1) Autocommit

[h2] Re: what about *.mv.db files

2024-04-27 Thread Rinse Lemstra
l have the same size ~ 20k. > > These mv.db files cause an exception while making a backup. > > What are these files? > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop recei

[h2] Re: h2-2.2.224 Automatic Mixed Mode(AUTO_SERVER=TRUE) from different PCs no longer supported?

2024-04-27 Thread neive
the same. > > * Place DB on PC1 and access from PC2 > >>Error. Possible solutions: close all other connection(s); use the > server mode [90020-224] > > * Place DB on PC2 and access from PC1 > >> success. > 2024年4月27日土曜日 21:18:46 UTC+9 neive: > >> Hi

[h2] Re: h2-2.2.224 Automatic Mixed Mode(AUTO_SERVER=TRUE) from different PCs no longer supported?

2024-04-27 Thread neive
on PC2 and access from PC1 >> success. 2024年4月27日土曜日 21:18:46 UTC+9 neive: > Hi Team, > > I tried upgrading h2-1.4.196 to h2-2.2.224 to verify. > Is connecting with Automatic Mixed Mode(AUTO_SERVER=TRUE) from different > PCs no longer supported? > > * Automatic Mixed Mode &g

[h2] h2-2.2.224 Automatic Mixed Mode(AUTO_SERVER=TRUE) from different PCs no longer supported?

2024-04-27 Thread neive
Hi Team, I tried upgrading h2-1.4.196 to h2-2.2.224 to verify. Is connecting with Automatic Mixed Mode(AUTO_SERVER=TRUE) from different PCs no longer supported? * Automatic Mixed Mode https://www.h2database.com/html/features.html?highlight=AUTO_SERVER=AUTO_SERVER%20#auto_mixed_mode * Could

[h2] what about *.mv.db files

2024-04-27 Thread Rinse Lemstra
Just moved to mvstore. After conversion in some directories there is a *.mv.db file, all have the same size ~ 20k. These mv.db files cause an exception while making a backup. What are these files? -- You received this message because you are subscribed to the Google Groups "H2 Dat

[h2] Re: H2 as an odb in LibreOffice Base

2024-04-18 Thread prrvchr
It's done, it's called H2dbOOo <https://prrvchr.github.io/H2dbOOo/> and there are two versions: - 1.0.0 for LibreOffice up to 7.x - 1.1.0 for LibreOffice 24.2.x or higher You can create H2 databases only with the mouse (say goodbye to your keyboard...) If you fill a table, you kill Libre

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
Understood. Thanks! -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web vi

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Evgenij Ryazanov
too many unknown variables. You can't rely on them. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view th

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
don't think we should be seeing "duplicates" like I reported - esp when there's a unique primary key. But I'll let you guys have the last word on that. Best,Peter -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubsc

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Andreas Reichel
On Tue, 2024-04-16 at 09:54 +, 'Peter Borissow' via H2 Database wrote: > Hmm... I kinda have a row id already via the unique primary key. What > advantage would a temp table give in my case? The advantage is, that special column _rowid_ is the physical row of the data frame and it

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
Hmm... I kinda have a row id already via the unique primary key. What advantage would a temp table give in my case? -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, sen

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Andreas Reichel
In my understanding, you could create a temporary table from your query (without pagination) and then use the special column `_row_id_` for the pagination. On Tue, 2024-04-16 at 16:42 +0700, Andreas Reichel wrote: > On Tue, 2024-04-16 at 09:14 +, 'Peter Borissow' via H2 Database >

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
break point looking at just 2 records at a time looks like this: Does having a unique primary key make any difference? Or should it? -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving e

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Evgenij Ryazanov
On Tuesday 16 April 2024 at 17:18:41 UTC+8 Evgenij Ryazanov wrote: These rows are called *pears* in the SQL Standard. I meant *peers*, of course. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this grou

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Andreas Reichel
On Tue, 2024-04-16 at 09:14 +, 'Peter Borissow' via H2 Database wrote: > I don't care if 218 appears before 217 or if 217 appears before 218 > as long as they both appear.  Peter, please consider that  1) the second query call knows nothing about the first query call ( and this fact

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Evgenij Ryazanov
| 2 2 | 4 2 | 3 (3 rows) Row (1, 3) is missing. Results in H2 are slightly different: # select * from test order by a offset 0 rows fetch first 3 rows only; A | B -- | - -1 | 4 0 | 4 1 | 3 (3 rows) # select * from test order by a offset 3 rows fetch first 3 rows only; A | B - | - 1 | 3 2

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
;duplicate" 218 at the break point, with no 217 like this: That's point #1. Point #2 regarding consistency is that if I run the same query over and over I get 4 different results. Bear in mind that the table and data is 100% static. -- You received this message because you are subscribed to t

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Andreas Reichel
queries don't order anything but imply grab any 50 records first. Cheers -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@google

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread Noel Grandin
On 4/16/2024 10:19 AM, 'Peter Borissow' via H2 Database wrote: (2) The query response is inconsistent. I see 4 different responses coming back from the same query on a static table. I don't think that's right. SQL databases implement the relational model. The relational model works

Re: [h2] Re: Duplicate records when order by date?

2024-04-16 Thread 'Peter Borissow' via H2 Database
ully,Peter -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.g

[h2] H2 as an odb in LibreOffice Base

2024-04-15 Thread prrvchr
Hi all, I am working on an extension allowing access to H2 in LibreOffice in embedded mode. This allows you to have your H2 database, these Base Queries and Forms in a single odb file. In order to be able to manage the privileges I provide at the connection during the creation of the H2

Re: [h2] Re: Duplicate records when order by date?

2024-04-13 Thread Andrei Tokar
arlier but I don't see this behavior > in PostgreSQL. Not sure how other RDBMS behave but it would be interesting > to compare. > > Peter > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this gr

Re: [h2] Re: Duplicate records when order by date?

2024-04-13 Thread 'Peter Borissow' via H2 Database
to compare. Peter -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web vi

[h2] Re: Duplicate records when order by date?

2024-04-12 Thread Evgenij Ryazanov
, it can process all of them and run next query with OFFSET 151 ROWS FETCH NEXT 50 ROWS WITH TIES. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h

[h2] Duplicate records when order by date?

2024-04-12 Thread 'Peter Borissow' via H2 Database
can replicate. Thanks in advance, Peter My environment: Java 21.0.1 Windows 11 H2 2.2.224 (PostgreSQL mode) -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an em

[h2] LibreOffice Base is capable of administering H2

2024-04-11 Thread prrvchr
rights inherited from roles. Please notify me of any malfunction. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegro

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread prrvchr
ligent and communicative functionalities. > > > Why is it hard to use the workaround? ie. doing > > I already have specific code for H2 because of the type of table named > TABLE BASE. If you use H2 in LibreOffice Base with the native JDBC driver > you will only see the views, t

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread prrvchr
ary if we want to be able to offer intelligent and communicative functionalities. > Why is it hard to use the workaround? ie. doing I already have specific code for H2 because of the type of table named TABLE BASE. If you use H2 in LibreOffice Base with the native JDBC driver you will on

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread Noel Grandin
essage because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/CAFYHVnU

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread prrvchr
more functionality > to LibreOffice Base for H2. > > Now if it is forbidden to talk about what is not working and it is > preferable to hide behind bogus justifications, I do not think that this is > of much interest. > > Sometimes it is better to say: > - Yes this is a

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread prrvchr
Hi Noel, If this is not appreciated, then I apologize. But I'm not paying either and I'm trying to bring some more functionality to LibreOffice Base for H2. Now if it is forbidden to talk about what is not working and it is preferable to hide behind bogus justifications, I do not think

Re: [h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread Noel Grandin
n from that method. We would also likely break the code of various people who use H2. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread prrvchr
... Le mercredi 10 avril 2024 à 09:37:59 UTC+2, Evgenij Ryazanov a écrit : > H2 returns table types exactly as required by the SQL Standard. JDBC > doesn't have any own requirements. > -- You received this message because you are subscribed to the Google Groups "H2 Database" gr

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-10 Thread Evgenij Ryazanov
H2 returns table types exactly as required by the SQL Standard. JDBC doesn't have any own requirements. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an em

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-09 Thread prrvchr
Firebird Jaybird). >> MariaDB connector/J gives system tables only for those located in the >> information_schema. >> >> It seems to me that if this is used by so many databases it is because it >> is the simplest solution to provide such functionality. >> >>

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-09 Thread prrvchr
> is the simplest solution to provide such functionality. > > I already have specific code for H2 which returns TABLE BASE instead of > TABLE and I had to set up mock ResultSet on the > DatabaseMetaData.getTypeInfos() and DatabaseMetaData.getTablePrivileges() > methods for

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-09 Thread prrvchr
. It seems to me that if this is used by so many databases it is because it is the simplest solution to provide such functionality. I already have specific code for H2 which returns TABLE BASE instead of TABLE and I had to set up mock ResultSet on the DatabaseMetaData.getTypeInfos

[h2] Re: H2 does not use SYSTEM TABLE in table types

2024-04-09 Thread Evgenij Ryazanov
Hi! > Why H2 does not use SYSTEM TABLE in the table types returned by the DatabaseMetaData.getTableTypes() method Because there is no such thing as system table in the SQL Standard. JDBC metadata is an entirely unreliable thing, you can't construct anything serious on

[h2] Re: Get user's roles and role's users

2024-04-09 Thread prrvchr
Hi, Thank you for this information, it allowed me to integrate the management of roles and rights into Base for H2. I give you the queries that I use, this may possibly benefit other people. Get a user's roles: SELECT GRANTEDROLE FROM INFORMATION_SCHEMA.RIGHTS WHERE GRANTEETYPE = 'USER

[h2] H2 does not use SYSTEM TABLE in table types

2024-04-09 Thread prrvchr
Hi all, It's just a question. Why H2 does not use SYSTEM TABLE in the table types returned by the DatabaseMetaData.getTableTypes() method. How to filter tables found in system schemas (ie: INFORMATION_SCHEMA) using the getTableType() method? Thank you for your suggestions. -- You received

Re: [h2] working around differences with h2 PSQL compatibilty

2024-04-07 Thread Andreas Reichel
offering psql and h2 options in my software, as well as using h2 > in my tests. But I'm having an issue when trying to store json data. > H2 requires "FORMAT JSON" in the value for json but this syntax isn't > allowed in PSQL. I'm trying to use the same queries between both >

[h2] working around differences with h2 PSQL compatibilty

2024-04-07 Thread broccolai
hi! I'm offering psql and h2 options in my software, as well as using h2 in my tests. But I'm having an issue when trying to store json data. H2 requires "FORMAT JSON" in the value for json but this syntax isn't allowed in PSQL. I'm trying to use the same queries between both whic

Re: [h2] how much indexes are used for optimization

2024-04-07 Thread Noel Grandin
Run the EXPLAIN command to see which indexes are used for a specific query -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-databas

Re: [h2] how much indexes are used for optimization

2024-04-07 Thread 'Christian Buchegger' via H2 Database
e the cost and only one is finally used to access the data. Hope this helps. Rinse Lemstra schrieb am Fr., 5. Apr. 2024, 18:50: > > from the H2 website: > > If a table has multiple indexes, *sometimes more than one index could be > used.* Example: if there is a table

[h2] Re: how much indexes are used for optimization

2024-04-07 Thread Evgenij Ryazanov
, …) columns for optimal performance. H2 doesn't have a bitmap index scan optimization, so if you have only separate indexes, only one index will be used. Some database systems can use two indexes on the same time in such queries, but even in them a two-column index should be significantly faster than

[h2] how much indexes are used for optimization

2024-04-05 Thread Rinse Lemstra
from the H2 website: If a table has multiple indexes, *sometimes more than one index could be used.* Example: if there is a table TEST(ID, NAME, FIRSTNAME) and an index on each column, then two indexes could be used for the query SELECT * FROM TEST WHERE NAME='A' AND FIRSTNAME='B', the index

[h2] Looking for a contribution to h2database

2024-04-04 Thread Σίντι Βρουσάι
Hello, I'm a university student and i have to contribute to an oss as an assignment for a course of "Software engineering". I chose h2 but i would appreciate some help. I'm a beginner so i'm looking for an issue that is not very complicated to solve or an enhancement to

[h2] Re: java.lang.NoClassDefFoundError: org/h2/command/dml/SetClauseList

2024-04-04 Thread Evgenij Ryazanov
Hello! Make sure you have only one version of H2 in classpath of your application. If you have a standalone H2 Server process, check its classpath instead. If you use auto-server mode, check classpaths of all involved applications. -- You received this message because you are subscribed

[h2] java.lang.NoClassDefFoundError: org/h2/command/dml/SetClauseList

2024-04-04 Thread Martin Lichtin
Seeing this NoClassDefFoundError, looks like it's from the Server side. Anyone has an idea? H2 version 2.2.224 Caused by: org.h2.jdbc.JdbcSQLNonTransientException: General error: "java.lang.NoClassDefFoundError: org/h2/command/dml/SetClauseList" [5-224]

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-04-02 Thread 'Balamurali Krishna Ippili' via H2 Database
: > When you use Statement.RETURN_GENERATED_KEYS, driver may choose what it > should return by itself, see JDBC™ 4.3 Specification, section 13.6. Modern > versions of H2 return primary key columns, identity columns, and columns > with non-constant default expression (including expressions in

[h2] Re: Get user's roles and role's users

2024-03-30 Thread Evgenij Ryazanov
transitive permissions from these roles. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this

[h2] Get user's roles and role's users

2024-03-30 Thread prrvchr
INFORMATION_SCHEMA.ROLE_AUTHORIZATION_DESCRIPTORS WHERE GRANTEE=? AND ROLE_NAME!=GRANTEE But I couldn't find anything for H2, thanks for your help... -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiv

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread Evgenij Ryazanov
When you use Statement.RETURN_GENERATED_KEYS, driver may choose what it should return by itself, see JDBC™ 4.3 Specification, section 13.6. Modern versions of H2 return primary key columns, identity columns, and columns with non-constant default expression (including expressions inherited from

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
> >> >> Thanks, >> Balamurali >> >> On Fri, Mar 29, 2024 at 3:55 PM Balamurali Krishna Ippili < >> balamurali.ipp...@broadcom.com> wrote: >> >>> Hi Evgenij, >>> >>> Thanks for your quick reply and suggestion. Really appreciate

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
gt; >> Thanks, >> Balamurali >> >> On Fri, Mar 29, 2024 at 3:06 PM Evgenij Ryazanov >> wrote: >> >>> Hi! >>> >>> You shouldn't try to insert NULL into columns with NOT NULL constrains. >>> Only non-null values or DEFAULT may be

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
umns with NOT NULL constrains. >> Only non-null values or DEFAULT may be inserted into them. >> >> H2 allows such incorrect insertions into identity columns only in Legacy, >> HSLQDB, MariaDB, and MySQL compatibility modes. >> >> You can also enable this feature for

Re: [h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
nly non-null values or DEFAULT may be inserted into them. > > H2 allows such incorrect insertions into identity columns only in Legacy, > HSLQDB, MariaDB, and MySQL compatibility modes. > > You can also enable this feature for any column in any compatibility mode > with ALTE

[h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread Evgenij Ryazanov
Hi! You shouldn't try to insert NULL into columns with NOT NULL constrains. Only non-null values or DEFAULT may be inserted into them. H2 allows such incorrect insertions into identity columns only in Legacy, HSLQDB, MariaDB, and MySQL compatibility modes. You can also enable this feature

[h2] Re: Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
tion, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. -- You received this message because you are subscribed to the Google Groups &quo

[h2] Auto Increment statement is giving an error when passing null with H2DB 2.2.224 version

2024-03-29 Thread 'Balamurali Krishna Ippili' via H2 Database
l in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an e

  1   2   3   4   5   6   7   8   9   10   >