firebird

How to configure Jaybird with hibernate

对着背影说爱祢 提交于 2019-12-06 05:13:43
问题 I'm using jaybird 2.2.3 with hibernate 3.5 and when I use the wizard to hibernate mapping files and pojos database the following error appears "java.lang.NullPointerException" I use the same mapping with mysql and it works correctly, so I believe it is something in jaybird My hibernate.cfg.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

How to execute transactions (or multiple sql queries) in firebird using c#

与世无争的帅哥 提交于 2019-12-06 05:12:00
问题 I have tried several ways, including on SO. The following MYSQL code does not work in Firebird: CREATE TABLE publications ( INT NOT NULL AUTO_INCREMENT , PRIMARY KEY (`id`), filename varchar(500) not null unique, title varchar(500) DEFAULT NULL, authors varchar(1000) DEFAULT NULL, uploader int DEFAULT NULL, keywords varchar(500) DEFAULT NULL, rawtext text, lastmodified timestamp default CURRENT_TIMESTAMP ); So to achieve this in Firebird, I am using: CREATE TABLE publications ( id int NOT

“Unable to complete network request” or “connection rejected” for Firebird, on just one machine

安稳与你 提交于 2019-12-06 03:22:23
问题 I've got a seemingly unique issue on just one computer in the company (had to be my boss's). I've got a program from Borland C++ that uses a TSQLConnection . It connects to a local Firebird server 2.1.1.17910 running as an application. The other computers work fine. It will absolutely not connect on this one lappy (local server) for anything . I remember he always had trouble with InterBase when it was installed as well. I think he installed up to 7.5 possibly. It's gone now and I went

How can I bind a Python list as a parameter in a custom query in SQLAlchemy and Firebird?

梦想与她 提交于 2019-12-06 02:50:09
Environment I am using Firebird database with SQLAlchemy as ORM wrapper. Backgound I know that by using in_ it is possible to pass the sales_id list in IN clause and get the result. I have a use case where I must use textual sql . Question Here is my snippet, conn.execute('select * from sellers where salesid in (:sales_id)', sales_id=[1, 2, 3] ).fetchall() This always throws token unknown error All I need is to pass the list of sales_id ( [1, 2, 3] ) to bind parameter ( :sales_id ) and get the result set. If using a DB-API driver that does not provide special handling of tuples and lists for

Does Firebird BLR contain the related field sizes?

我只是一个虾纸丫 提交于 2019-12-06 02:28:46
Firebird and InterBase keep a compiled form of stored procedures and triggers in BLR (tokenized) format. But I do not really know the structure of BLR. Is field size the part of the BLR? Would I get some problems when a stored procedure contains two fields (source and destination), and later I'll change the size of these two fields? For example they were varchar(50) long, but now I change them to varchar(100) with system table updates. What will happen? Would it only copy 50 characters, or all (100)? Or does BLR contains only object links (tables and fields)? I will try to demonstrate with

how do i connect to a firebird database on delphi 7 from multiple clients spread across the internet?

风格不统一 提交于 2019-12-06 02:08:34
i would like to create a program that can access my firebird database on 2 different computers via the internet. i would like to know what connection to use and what parameters to set. thanks There are some libraries available - see here for a rather comprehensive list. For the libraries which support more database back-end you must choose the Firebird driver (usually is called Interbase/Firebird Driver or IB/FB Driver). For protocol, choose TCP/IP - for connection string you must have your server public IP address : your full database file path as seen by FB server . The exact format depends

Is Firebird good embedded DB for ASP.NET? Which else?

大城市里の小女人 提交于 2019-12-05 21:37:52
Looking for a good embedded db for my asp.net apps while trying to avoid SQLExpress ( I need it to be a downloable file(s) with no need to install at server ), I found Firebird. But: According to this: http://en.wikipedia.org/wiki/Embedded_database#Firebird_Embedded It has the same features as the classic and superserver version of Firebird, except that two or more THREADS (not just applications) cannot access the same database at the same time. So Firebird embedded acts as a local server for a single threaded client accessing its databases (that means it doesn't work properly for ASP.NET web

Failed to read win registry - firebird key using delphi

谁都会走 提交于 2019-12-05 16:15:34
I do not understand. There is a window registry key of firebird server I want to check if it exists. The key exists but the function returns false. What is wrong? I'm using Windows 7 64x with delphi 2010. Tks. Davis. procedure x; var reg:TRegistry; begin reg := TRegistry.Create; reg.RootKey := HKEY_LOCAL_MACHINE; if reg.OpenKey('\SOFTWARE\Firebird Project\Firebird Server\Instances',false)=true then begin ShowMessage('Key exists'); end; end; The most likely reason is that you have opened the key requesting write access but on Windows 7 under UAC, users do not, by default, have write access to

Firebird: How to make an md5 hash?

…衆ロ難τιáo~ 提交于 2019-12-05 15:29:36
I want to update all passwords in the DB to have a MD5 hashes password. The following doesn't solve my problem: UPDATE USERS SET USERPASS = hash('SALT' || USERPASS); Problem being: it returns a hash that was not generated using the MD5 algorithm. How can I impliment the md5 hash algorithm in Firebird? Unfortunately the algortihm of the hash function is not mentioned in the documentation ... anyway, you can implement it as an UDF or use some thirdparty UDF lib which implements it. There is a list of UDF Libraries for Firebird on the IBPhoenix website and it seems that both rFunc and

How to connect Firebird DB with Qt?

家住魔仙堡 提交于 2019-12-05 15:28:01
I am really new to Firebird and I want to implement really really easy task in order to understand how I can work with it. Can you please give me a link or a piece of code with a little information about how I can reach Firebird using Qt ? Thank you very much for you all Mariuz The Qt toolkit contains many great SQL drivers and among them is also an FireBird SQL driver. http://doc.qt.io/qt-5/sql-driver.html#qibase-for-borland-interbase To use it on windows/linux you need to recompile the driver Here is one example with Firebird embedded : . http://www.codeproject.com/Articles/47457/Get-Started