firebird

create collation of firebird(3.0.1) db error on windows but succeed on centos

不打扰是莪最后的温柔 提交于 2019-12-08 06:42:47
问题 I try to create a collation on a new database(firebird3.0.1 on windows. I follows the steps: create database 'c:\tmp\ebizmis.fdb' user 'SYSDBA' password '123456' default character set utf8 collation unicode; connect 'c:\tmp\ebizmis.fdb' user 'SYSDBA' password '123456'; create collation py for utf8 from UNICODE case insensitive 'LOCALE=zh'; in this step, prompting error: Statement failed, SQLSTATE = HY000 unsuccessful metadata update -CREATE COLLATION PY failed -Invalid collation attributes

how to combine tables with 1 to many relationship into 1 line of record

泄露秘密 提交于 2019-12-08 03:43:32
问题 I need to combine two tables with 1 to many relationship using union but to no success. I've been trying to use this code select a.equipmentid, a.codename, a.name, a.labelid, a.ACQUISITIONDATE, a.description from TBL_EQUIPMENTMST a where a.partofid = '57' union all select first 1 b.warrantyid, b.startdate, b.enddate from tbl_equipwarranty b inner join TBL_EQUIPMENTMST c on b.equipmentid=c.equipmentid where c.partofid = '57' and b.servicetype='service' order by b.warrantyid desc union all

Firebird UTF-8 German phonebook sorting

北城余情 提交于 2019-12-08 02:29:09
问题 Server: Windows 2008 R2 x64 with Firebird 2.5 x64 I need a sorting methode like the German phonebook at a Query e.g. SELECT Name, Forename FROM Address ORDER BY Name, Forename; I want as result: Name, Forename Assemann, Simon Aßmann, Erika Assmann, Frank Astmann, Manfred Hacker, Simon Hackmann, Gustav Häcker, Emil Haecker, Manfred Häcker, Xaver Hafermann, Ulrich In the German phonebook sorting, the German special characters are handled at following way: Ä/ä = Ae/ae Ö/ö = Oe/oe Ü/ü = Ue/ue ß =

Export Firebird database to sql

泪湿孤枕 提交于 2019-12-07 20:12:41
问题 I have several databases in Firebird using IBExpert as the GUI admin. I am changing over to MySQL. I can use IBExpert to backup the database (which gives me the full structure and data) but the gbak format can't be read by phpMyAdmin. PhpMyAdmin has an export command that dumps the data and/or structure of the active database to an sql file. Is it possible to do something similar with IBExpert? 回答1: You can use the FBExport tool to generate a dump with inserts. However I am not sure if it is

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

試著忘記壹切 提交于 2019-12-07 14:42:34
问题 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

NHibernate firebird error - Index was out of range

半城伤御伤魂 提交于 2019-12-07 14:31:16
问题 What can cause the following error in c# when using NHibernate and Firebird database? 2015-08-17 08:27:04,962 [21] [(null)] ERROR Smartsign.Server.Core.Server Unhandled exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException() at System.Collections.Generic.List`1.get_Item(Int32 index) at FirebirdSql.Data.FirebirdClient.FbParameterCollection

Delphi XE, Firebird and UTF8

烂漫一生 提交于 2019-12-07 13:36:49
问题 I'm upgrading a D7 program to XE, and under Delphi 7 I had code like this... ParamByName ('Somefield').AsString:=someutf8rawbytestring; Under XE if someutf8rawbytestring contains unicode characters such as Cyrillic script, then they appear as ???? in the DB. I see that someutf8rawbytestring is 8 characters long, for my 4 character string, which is correct. But in the DB there are just four characters. I'm using Firebird 2 through TIBQuery with XE and updating a Varchar field with character

How to connect Firebird DB with Qt?

时光总嘲笑我的痴心妄想 提交于 2019-12-07 11:10:47
问题 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 回答1: 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

Failed to read win registry - firebird key using delphi

你离开我真会死。 提交于 2019-12-07 10:18:48
问题 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; 回答1: The most likely reason is that you have opened

Firebird and Entity Framework case sensitve table/column names

谁说胖子不能爱 提交于 2019-12-07 09:00:35
问题 When working with Firebird I can query a table and its columns without worrying about case. If I want case sensitivity I can put the table/column name in quotes. The Firebird Entity Framework connector automatically puts quotes around names when generating queries, and as a result it forces case sensitivity on me. This means I have a bunch of [Table("SOMETABLE")] and [Column("DESCRIPTION")] all over the place because my existing table names are in all-caps. How can I tell the EF connector for