jaybird

Spring Data JDBC Firebird dialect not recognized

爷,独闯天下 提交于 2020-07-06 19:27:06
问题 I'm trying to connect to Firebird database using Spring Data JDBC and Spring Boot. I've created a simple app using Spring Tools. Spring Data JDBC doesn't recognize the dialect. I believe the problem is that the DialectResolver doesn't support Firebird. private static Dialect getDialect(Connection connection) throws SQLException { DatabaseMetaData metaData = connection.getMetaData(); String name = metaData.getDatabaseProductName().toLowerCase(Locale.ENGLISH); if (name.contains("hsql")) {

Creating a connection with WildFly 10 and Jaybird 3.0 fails

拜拜、爱过 提交于 2019-12-24 09:12:24
问题 I have upgraded my Jaybird dependency in Wildfly 10 from Jaybird 2.2.11 to Jaybird 3.0.0-alpha-1. When I try to create a connection I now get the following stacktraces The first connection after startup (when testing in the admin console): 2016-08-27 10:50:45,354 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (External Management Request Threads -- 2) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to

Firebird 3 sysdba password stunning issue

那年仲夏 提交于 2019-12-21 16:58:26
问题 I migrated from firebird 2.5.x to 3.0 i have changed firebird.conf : WireCrypt = Enabled AuthServer = Legacy_Auth, Srp, Win_Sspi after that here you are what happened: I can connect from Netbeans IDE using SYSDBA masterkey. I can connect from FlameRobin (database admin. tool) using SYSDBA with other password. I can not connect from Wild-Fly server using SYSDBA with that other password. I am really wondering.!! 回答1: I assume you are using Jaybird 2.2.x (or earlier) when connecting from

Column aliasing in SELECT statements doesn't work with SQuirrel SQL + Firebird

二次信任 提交于 2019-12-20 09:53:04
问题 I tried add an column alias in SELECT statement using SQuirrel SQL 3.4 + Firebird 1.5 + Driver JDBC Jaybird 2.2.[0|1] (JVM 1.7.0_03), but doesn't work. The column aliased appears with the original name of column. In another tool (DBExpert) the same statement works fine. Statement : SELECT column1 AS alias1, column2 FROM table; Resultant columns name in SquirrelSQL : column1 - column2 Resultant columns name in DBExpert : alias1 - column2 Tried add ' and " around alias name, but also not work.

Column aliasing in SELECT statements doesn't work with SQuirrel SQL + Firebird

不羁岁月 提交于 2019-12-20 09:50:05
问题 I tried add an column alias in SELECT statement using SQuirrel SQL 3.4 + Firebird 1.5 + Driver JDBC Jaybird 2.2.[0|1] (JVM 1.7.0_03), but doesn't work. The column aliased appears with the original name of column. In another tool (DBExpert) the same statement works fine. Statement : SELECT column1 AS alias1, column2 FROM table; Resultant columns name in SquirrelSQL : column1 - column2 Resultant columns name in DBExpert : alias1 - column2 Tried add ' and " around alias name, but also not work.

GDS Exception. 335544421. connection rejected by remote interface

流过昼夜 提交于 2019-12-17 10:03:26
问题 I am trying to connect to a firebird db using the jaybird jdbc driver. Firebird is running under ubuntu. I have created a simple database located under /tmp/hellofb.fdb (yeah not the best place, just for testing). I am running firebird superserver 3.0. The firebird service is up and running sudo service firbird3.0 status : firebird3.0.service - Firebird Database Server ( SuperServer ) Loaded: loaded (/lib/systemd/system/firebird3.0.service; enabled; vendor preset: enabled) Active: active

Jaybird CallableStatement not executed until getting output parameter

余生长醉 提交于 2019-12-13 15:41:14
问题 I have this Java code: Connection conn = connectionProvider.getConnection(); statement = conn.prepareCall("execute procedure rm_set_coordinates(?,?,?)"); statement.setInt(1, userId); statement.setString(2, String.valueOf(location.getLatitude())); statement.setString(3, String.valueOf(location.getLongitude())); statement.execute(); Where rm_set_coordinates is Firebird stored procedure: create or alter procedure RM_SET_COORDINATES ( PCAR_LOGIN integer, PLAT varchar(20) = 0, PLNG varchar(20) = 0

Hibernate 4 Delete from HT_tables where IN clause Token unknown “,”

不羁岁月 提交于 2019-12-13 04:06:02
问题 Using Hibernate 4, the below generated query failed : delete from ErpEmploye_AUD where (code, folder_codeId, REV) IN (select code, folder_codeId, REV from HT_ErpEmploye_AUD where hib_sess_id=1) Firebird Exception : SQL error code = -104 Token unknown - line 1, column 39 , In the org.hibernate.hql.spi.TableBasedDeleteHandlerImpl Class there is https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/hql/spi/TableBasedDeleteHandlerImpl.java private