Questions tagged [hsqldb]
HSQLDB (HyperSQL Database) is a relational database management system. It is written in Java.
2,425
questions
0
votes
0answers
7 views
How to find disk usage per table of Hsql database (using SQL, DataGrip or other solutions)?
I have 2 hsql database which are supposed to hold the same information. However, one is taking 4x time more space on disk (1 GB versus c. 250 MB). The database holds plenty of tables and I would like ...
0
votes
1answer
23 views
Create function HSQLDB user lacks privilage or object not found
I try to create a function (or routine) in hsqldb to concatante field values, basicly an alias doing the same thing as GROUP_CONCAT with a different name and signature.
So i wrote it like this :
...
0
votes
0answers
21 views
Tomee Server Startup Error Database lock acquisition failure even when hsql is not configured in application
I have an application that runs on kubernates cluster on tomee container.
Application was running fine and still running fine with below exception now:
INFO: Configuring Service(id=My Stateful ...
2
votes
2answers
50 views
SpringBoot user lacks privilege or object not found HSQLDB
I've created an app with views for 3 entites bank client and credit using Spring Boot and Vaadin. Credit entity is similar to client.
@Entity
@Table(name = "CLIENTS_TABLE")
public class ...
0
votes
0answers
21 views
Database lock acquisition failure when using HSQLDB in Spring Boot
My test application.yml is below:
spring:
datasource:
url: jdbc:hsqldb:hsql:/localhost:9001/db/test
driverClassName: org.hsqldb.jdbcDriver
username: root
password:
jpa:
show-...
1
vote
2answers
31 views
Query gets “invalid order by” when using hsql db while Mysql does not ( result must be one column only)
While this query is running fine in a MySQL database:
SELECT DISTINCT user_id
FROM table_name
WHERE user_name IN (:userNameList)
AND user_type IN ('client','vip')
ORDER BY user_login_time ...
0
votes
1answer
46 views
HSQLDB delete trigger is causing problem in subquery
I am having a problem in HSQLDB delete trigger, somehow it's not working as expected.
I am trying to implement logs of every change in database.
For sample testing, I execute these SQL statements:
...
0
votes
1answer
23 views
Does HSQLDB support default values for enums in MySQL compat mode?
I'm using an in-memory HSQLDB instance (version 2.5.1) for Java unit tests. The instance has MySQL compatibility mode enabled. The following create statement works:
CREATE TABLE people
(
...
0
votes
1answer
19 views
Issues when using HSQL and WHERE statement
I have an issue when using a WHERE statement in HSQL. When I enter the code as follows I get no errors:
"SELECT Year, ProjectName, (cast(sum(Missed) as float)/(select cast(sum(d.Missed) as float) ...
1
vote
1answer
34 views
Unique Indexes query for HSQLDB
I've got a query that selects unique indexes from a MySQL DB table:
SHOW indexes from [tablename] WHERE non_unique = FALSE and key_name <> "PRIMARY"
I am looking to create the ...
1
vote
1answer
39 views
Python: HSQL DB remains open after closing? (jaydebeapi)
Task
I am writing a Python script that makes some changes in a HSQL-DB and then rexecutes a java-programm via the command line, which works with the data in the DB. I am using jaydebeapi for altering ...
0
votes
0answers
14 views
Why am I getting “Layered pools are not allowed” when using hsqldb?
I am running a test that uses HSQLDB and it is throwing the following error...
java.lang.IllegalArgumentException: Layered pools are not allowed.
at org.apache.tomcat.jdbc.pool.PoolProperties....
0
votes
2answers
46 views
“Object not found” error when using multiple table expressions in WITH…AS inside of CREATE VIEW
I am trying to create a view based on complex query in HSQLDB (version 2.5.1).
The query looks like this (simplified for clarity), also includes DDL for the tables:
DROP VIEW TEST_VIEW IF EXISTS;
...
0
votes
1answer
38 views
Java memory hsqldb
I am making a discord bot using Java, and I use hsqldb for a memory database, but it doesn't work fine for me, i insert data into the table and the result set next time gives 0 rows. the most ...
0
votes
1answer
19 views
JDBC SELECT COUNT(*) returns empty resultset on HSQLDB
I would expect to always receive a resultset with one row on a SELECT COUNT, but results.next() always returns false. This is on HSQLDB 2.5.1.
The code below prints:
number of columns: 1. First ...
0
votes
1answer
30 views
HSQLDB command line shutdown no longer works after upgrade
On Ubuntu 18.04, I was able to shut down a running HSQLDB instance in server mode with the following one-liner:
java -cp $CLASSPATH:/usr/share/java/hsqldbutil.jar:/usr/share/java/hsqldb.jar "org....
0
votes
1answer
19 views
How to save XML Data in String form in HSQLDB table column
I have a webservice client which calls Webservice-A for xml data in string form. The client receives the xml data in string. The thread needs to push the same xml data in string form to another ...
1
vote
1answer
51 views
org.hsqldb.HsqlException: discrepancy in the number of rows counted
I'm trying to play around with an insecure application (Insecure Bank) and I'm trying to port it to secure it a bit more as a personal project.
I have a problem inserting the contents of the database ...
0
votes
1answer
22 views
in-process mode hsqldb doesn't create tables and doesn't save values
My main class:
public static void main(String[] args) {
Connection con = null;
Statement stmt = null;
int result = 0;
try {
Class.forName("org.hsqldb.jdbc.JDBCDriver")...
1
vote
1answer
63 views
How to remove duplicates with one query in h2
I need to delete duplicate records for a specific field (instrument_id), leave only the very first record by id.
Using the MySQL example, this query looks like this:
DELETE t1 FROM ...
0
votes
1answer
71 views
Errors while upgrading Play/Scala/SBT/jOOQ/HSQLDB application
I am trying to upgrade the dependencies of a play/scala/sbt/jooq/hsqdb project.
But I am getting the following errors when I try to generate classes by jOOQ from HSQLDB tables.
build.sbt
name := "...
1
vote
1answer
63 views
HsqlException: incompatible data types in combination
Since I moved my integration tests to an in-memory HSQLDB (want to avoid having to provide a proper MySQL everytime and clearing the database after every test), I am getting this error message ...
1
vote
2answers
81 views
How to insert TIMESTAMP WITH TIME ZONE into HSQLDB using JOOQ
I am using HSQLDB 2.4.0, jOOQ 3.7.1, Scala 2.11.7, Java 8.
I am trying to insert a java.time.OffsetDateTime into a TIMESTAMP WITH TIME ZONE column in an HSQLDB table:
sql.insertInto(MY_TABLE)
....
0
votes
1answer
51 views
ORDER BY with UNION clause
Everywhere I search I find that having something like the code below is supposed to work.
SELECT id, name, age FROM A
UNION
SELECT id, name, age FROM B
ORDER BY name
My query is searching every value ...
0
votes
1answer
24 views
HSQL server mode while connection from DatabaseSwingManager throws exception java.sql.SQLTransientConnectionException
I have written a java code of connecting to server mode
p.setProperty("server.database.3",
"file:G:/SERVERMODE/soamware;user=soamware;password=123@123");
p.setProperty("...
0
votes
0answers
25 views
How to get Hive Metadata information without using information_schema.tables
My requirement is to get all the tables and columns from database which should have the string datatype and store it in temporary table and get the maximum size of each string column based on actual ...
1
vote
1answer
32 views
Is it possible to persist HSQLDB only to file without any data in memory?
Going through the documentation of HSQLDB, it appears that even if you specify a file in the connection URL, it will still hold some of the table data in memory. Would setting the property hsqldb....
0
votes
0answers
35 views
How do I determine the default HSQL database connection information in Talend Studio?
I am new to Talend Studio. I am doing data profiling using Talend Studio enterprise version 7.3. Generating PDF reports has gone smoothly.
Our group would like to produce some output that is ...
0
votes
1answer
39 views
HSQLDB server connection using username and password in server startup command in cmd is not working
i am starting hsqldb server with db_name as MDB and credentials as user=test and password=test using command prompt as:
java -cp hsqldb.jar org.hsqldb.server.Server --database.0 file:/E:/DB/mdb --...
0
votes
1answer
27 views
HSQLDB column and table names in lowercases
I have a spring boot app which generates a schema with flyway in an hsqldb.
The problem is that all table and column names are converted to upper case (TBL_ROLE, ID, NAME).
The aim is to have the ...
2
votes
1answer
35 views
How do I update a single element of an ARRAY with a prepared statement?
We have a HSQLDB table with an ARRAY column. How can we update a single element with a low-cost prepared statement?
So far, we have tried:
PreparedStatement pstmt = con.prepareStatement("UPDATE ...
0
votes
2answers
51 views
Select row by array contains check
I have a table like
CREATE TABLE table(
name VARCHAR(100) NOT NULL,
array INTEGER ARRAY NOT NULL
);
For example if I have the rows
name: test, array: [1, 2, 3]
name: test2, array: [663, 332, ...
1
vote
1answer
18 views
HSQLDB ON DUPLICATE KEY UPDATE syntax error
I try to execute following query:
SET DATABASE SQL SYNTAX MYS TRUE;
and then:
INSERT INTO mytable (id, age) VALUES (1, 1)
ON DUPLICATE KEY UPDATE id=2, age=33;
I get error:
INSERT INTO mytable (id, ...
0
votes
1answer
19 views
HSLQDB + JPA2 (with Hibernate) - The app gets stuck when trying a TRUNCATE SCHEMA
My app implements Deltaspike v1.6 and uses Hibernate v4.3.8. It also uses C3P0 v0.9.5.4
My regression tests use TestNG v7 and HSQLDB v2.4
Situation:
I'm coding some regression tests using TestNG for ...
1
vote
2answers
30 views
how to get current value of sequence in hsqldb
How do I get the current value of a sequence in the HSQLDB?
I know I can get the "next value" with "call next value" but I want to get the "last given out value" ...
0
votes
0answers
27 views
How to create procedure hsqldb liquibase with spring unit test
I have a procedure, namely check_customer_valid.
In production, I've already added it into dbchangelog file as below:
<createProcedure catalogName="check_customer_valid"
...
0
votes
1answer
57 views
How to define Out CURSOR in HSQLDB and access it via Java/Junit
I have a java web project that talks to an Oracle db through stored procedures. Stored proc accepts two input and 1 OUT parameter of type SYS_REFCURSOR. Then the Java code iterates over the record set ...
0
votes
1answer
26 views
Making queries in HSQLDB during transaction
I'm running a test using HSQLDB and I want to be able making select queries on database while this test to see what is changing. I suppose transaction or something else is blocking the database while ...
0
votes
1answer
35 views
HSQLDB persistence in a Spring project
I checked a lot of answers but I didn't understand most of them, so please bear in mind that I'm very new to programming and Java.
So, I was following this tutorial: https://medium.com/@fsonmezay/...
0
votes
1answer
63 views
HSQLDB Properties in Java
can someone tell me why the parameters that i'm inserting in the url connecting to the bank are not changing?
for example: the hsqldb.full_log_replay = true property in the database remains false, I ...
1
vote
1answer
2k views
how do i resolve this java.lang.NullPointerException?
i am trying to run app that runs on both hsql and mysql database, to when i run it i get this error :
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)&...
0
votes
1answer
90 views
Why am I getting file doesn't exist?
I am trying to run an app with acquiadevdesktop with this code:
Process p1 = Runtime.getRuntime().exec("C:\\Program Files (x86)\\DevDesktop\\AcquiaDevDesktop\\AcquiaDevDesktop2.exe");
...
0
votes
1answer
28 views
Exception in setArray() in HSQL
I am using HSQL as an EmbeddedDatabaseType in my unit tests. I have created a table using this query:
CREATE TABLE Table1 (array1 VARCHAR(256) ARRAY, obj1 VARCHAR(256) );
This is the upsert query:
...
-1
votes
1answer
37 views
Where can I find code responsible for SQL query execution on engine level for HyperSQL?
I found next git repo with HyperSQL. And I'm checking JDBC interfaces for DB usage.
For example, I want to create connection with DB, and execute some statements:
Connection connection = ...
Statement ...
1
vote
0answers
55 views
LibreOffice Base pivot table for better report, no calculation of value needed
I'm still very new here and I have a very limited knowledge in any sql query. I am helping my company to create a database to store "Painting Reports" using LibreOffice Base. I have create a ...
0
votes
1answer
248 views
Spring. Cannot load driver class: org.hsqldb.jdbc.JDBCDriver
I am creating a simple app to experiment with the hsqldb database, but i cant even start because my IDE giving me an exeption
"Cannot load driver class: org.hsqldb.jdbc.JDBCDriver"
I've ...
0
votes
1answer
30 views
Why did HSQLDB 2.5.x drop support for `ROLLBACK ON DEADLOCK`?
I use HSQLDB 2.4 with a database setup script that contains
SET DATABASE TRANSACTION ROLLBACK ON DEADLOCK TRUE
After I updated to 2.5, this now fails with:
error in script file line: X org.hsqldb....
0
votes
1answer
43 views
HSQLDB creating table for unit test for sqlserver
I am creating table for my sqlserver unit test using hsqldb. Here is my syntax:
SET DATABASE SQL SYNTAX MSS TRUE;
DROP TABLE MY_STUDIES IF EXISTS;
CREATE TABLE MY_STUDIES
(
STUDY_ID INT,
IB_ID INT ...
0
votes
0answers
34 views
How to encrypt HSQLDB User Password using Spring Boot
I have an Spring Boot based application and a external HSQLDB folder that contains
db.data
db.properties
db.script
My application load & connect to this db, everything is fine. The problem is, ...
0
votes
1answer
48 views
HSQLDB inserting datetime format for SQL Server throws exception
I am trying to run unit tests for my SQL Server query. Query is simply inserting date to the table. I tried two different formats but didn't work:
parameters.addValue(STUDY_DATE, getDate(studyEvent....