Questions tagged [hsqldb]

HSQLDB (HyperSQL Database) is a relational database management system. It is written in Java.

HSQLDB (HyperSQL Database) is a relational database management system.

HSQLDB can be used inside Java application processes to serve local databases. HSQLDB also includes a database server, which allows access over the network.

Each HSQLDB instance can serve multiple databases. Each database can contain multiple schemas. The databases can be all-in-memory (mem: url) or persisted to disk (file: url). Persisted databases can use a mix of tables that are always kept in memory (MEMORY tables) and tables that are only cached in memory (CACHED tables) which can grow to many gigabytes and beyond the available memory.

HSQLDB is extremely fast, especially when used in memory, or when the database is relatively small.

HSQLDB supports a very extensive subset of the ISO Standard SQL:2011. It also features SQL syntax compatibility modes which simplify porting applications written for another database engine.

HSQLDB supports user-defined stored procedures, functions, aggregate functions, and triggers. These can be written in Java or in SQL procedural language (PSM). It also features an extensive list of built-in functions.

HSQLDB is fully multi threaded. It can operate in three different transaction models: the Two Phased Lock model (TPL), the Multiversion Concurrency Control Model (MVCC) and a mixed, pessimistic multiversion model with snapshot isolation. In each model, a transaction can run in read committed or serializable isolation levels.

HSQLDB has been around since 2001 and is supported by many Java frameworks and tools.

2521 questions
0
votes
2 answers

Use COALESCE in prepareStatement for "insert into" cmd

I am trying to execute below cmd but this one is throwing an exception: org.hsqldb.HsqlException: incompatible data type in operation conn.prepareStatement("INSERT INTO TableA (colA) VALUES (IFNULL(?, 1))) Here TableA has colA with integer…
Noob
  • 174
  • 1
  • 2
  • 19
0
votes
0 answers

How to deploy JavaFX 14 JDK11 HSQLDB Java desktop application

Used IDE: Eclipse After I Export the project as runnable jar with the first option (extract required libraries into jar) The following happens (I've tried putting the JFX and HSQLDB libraries in both class and module path, same result) While…
0
votes
1 answer

Recursive stored procedure in HSQLDB

is it possible to create recursive stored procedure in HSQLDB ? I wrote the following one to update a record and recursively all the parent records: CREATE PROCEDURE updateFolderTotals(IN p_id VARCHAR(32), IN p_size BIGINT, IN p_files INT, IN…
digio
  • 3
  • 2
0
votes
1 answer

Why is my merge (upsert) failing with type mismatches in a HSQLDB database when using VARBINARY fields?

Database engine: HSQLDB (because, well, it allows an embedded application DB in Java) Language: Java 8 (actually, Groovy 3.0.2, but it's basically JRE) Schema as follows: CREATE TABLE A ( START VARBINARY(16) NOT NULL, END VARBINARY(16) NOT…
wu-lee
  • 749
  • 4
  • 17
0
votes
0 answers

Failed to load ApplicationContext in Spring Controller E2E tests

I am running end2end tests for controllers in a spring boot maven project, individually these types of tests work for me, but if I run them in conjunction with the rest of the test the following error appears: java.lang.IllegalStateException: Failed…
0
votes
1 answer

Shut down HSQLDB in server mode from the shell

How can I stop a running HSQLDB server instance from the shell (e.g. as part of a shell script)?
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
4 answers

How to ignore field on domain object when using GORM save method

In my application I have a User domain object that has a handful of fields in it including a password field. The password field is an encrypted String using JASYPT. For development purposes I am creating a new user on startup that is hard coded. It…
jonsinfinity
  • 187
  • 3
  • 16
0
votes
1 answer

HSQLDB Timer Thread still running when servlet is destroyed

I am developing a servlet running on Tomcat. While I am still in the early stages of development, I am testing against a flat-file HSQLDB database. Once I get closer to production readiness, I will move to HSQLDB in server mode (or maybe an entirely…
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
1 answer

Does HSQLDB support setArray for in predicates in queries?

Suppose you want to issue a query such as the following to a HSQLDB instance over a JDBC connection: select * from employees where lastname in ('Stauder', 'Brugger', 'Wieser'); Challenge: the list of names varies (the number of values as well as…
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
1 answer

Does a substring search with LIKE benefit from an index?

Assume the following table definition in HSQLDB: create table message(id varchar(255) primary key not null, data clob not null); Will the index which HSQLDB creates automatically on id (being the primary key) speed up a substring search like the…
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
1 answer

HSQLDB server ACL takes no effect

I am trying to use HSQLDB in server mode, but cannot get the ACL to work. I started a server (creating a fresh database) with this command line: java -cp $CLASSPATH:/usr/share/java/hsqldb.jar org.hsqldb.server.Server --database.0…
user149408
  • 5,385
  • 4
  • 33
  • 69
0
votes
2 answers

Patterns for filling in-memory databases with testing data

I would like to know what would be the best way to fill in memory database for testing with test data - how to manage such data, how to make simple insert scripts, what are good tools to support this ect...
Jarek
  • 7,425
  • 15
  • 62
  • 89
0
votes
1 answer

DBUnit with HSQLDB: String column too short

I have an entity with the following attribute @Lob @NotNull private String myContent; Now, in my production setup I use a CLOB for representation in the database since the content can be several thousands of chars. However, for unit tests an…
Ewgenij Sokolovski
  • 897
  • 1
  • 12
  • 31
0
votes
1 answer

HSQLDB “precision or scale out of range” and "user lacks privilege or object not found" error when hibernate hbm2ddl import files

I cannot figure it out what I am doing wrong. Schema.sql is just to show how HSQLDB see the table. I don't have any idea. Am I just maybe blind or... Error I have pointing to 'precision or scale out of range':…
user1182625
  • 145
  • 2
  • 15
0
votes
2 answers

Hsqldb 2.5.0 SYSTEM VERSIONING

I would like to use the system versioning coming with version 2.5.0 but when I launch a request of the type: SELECT firstname, lastname, email FROM customer FOR SYSTEM_TIME AS OF CURRENT_TIMESTAMP - 1 YEAR It does not find any record when there are…
psilocybe
  • 35
  • 6