firebird

Firebird JDBC driver connection character encoding

假如想象 提交于 2020-01-12 14:06:49
问题 I have a JSF application running on tomcat6 in Fedora 17 using firebird as the database and all the registers coming from the database to the application are coming with a encoding problem. The language is Brazilian portuguese so I need é's and ã's and ç and here all of these special characters come with problems. The é's and ã's from the original source code are ok, only the ones coming directly from the database are causing me the trouble... Any idea what is going on? Heres a image where

Firebird JDBC driver connection character encoding

99封情书 提交于 2020-01-12 14:06:20
问题 I have a JSF application running on tomcat6 in Fedora 17 using firebird as the database and all the registers coming from the database to the application are coming with a encoding problem. The language is Brazilian portuguese so I need é's and ã's and ç and here all of these special characters come with problems. The é's and ã's from the original source code are ok, only the ones coming directly from the database are causing me the trouble... Any idea what is going on? Heres a image where

Update one table from another w/o join statement (firebird)

北城以北 提交于 2020-01-11 12:54:08
问题 I'd like to update the columns in on table based on the values of another table, I use a slightly old version of Firebird 2.1 so it doesn't have support for the join statement during update execution. In order to eliminate that, based on the instructions given in original firebird faqs http://www.firebirdfaq.org/faq323/ following statment should work, but it misses some of the values and values for that columns a returned as null as shown in the below tabular form of dataset. For example, Num

Retrieve last id from Firebird db table

我怕爱的太早我们不能终老 提交于 2020-01-11 07:17:49
问题 retreiving last inserted id I want to retreive last inserted id from firebird database. Data is succ. inserted, trigger inserts id as it should using generator. I'm advised to use this syntax var sql = "INSERT INTO ... VALUES ... " + "RETURNING Id"; where RETURNING Id should return table Id. I dont know how to store into variable. int lastId = ... 回答1: var con = OpenFB2Connection(); var trans = con.BeginTransaction(); var command = new OleDbCommand("INSERT INTO ... VALUES ... RETURNING Id");

Need in SQL parser on Delphi [closed]

这一生的挚爱 提交于 2020-01-10 11:52:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anybody know about good SQL parser with sources, written in Delphi? I need in parsing SQL commands (with all new features of Firebird 2.5) into object structure. 回答1: Read this article for Delphi SQL Parser, it uses IB as database but should not be very different between it and FB. And there's an open

Need in SQL parser on Delphi [closed]

六眼飞鱼酱① 提交于 2020-01-10 11:48:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anybody know about good SQL parser with sources, written in Delphi? I need in parsing SQL commands (with all new features of Firebird 2.5) into object structure. 回答1: Read this article for Delphi SQL Parser, it uses IB as database but should not be very different between it and FB. And there's an open

ibase_connect: remote computer host and shared db file from windows

旧街凉风 提交于 2020-01-07 06:41:19
问题 Linux red hat, connect the drive to a remote server (192.168.0.103) via mount to /mnt/databases Then trying to connect $idbh = ibase_connect("192.168.0.103/3050:/mnt/databases/XXX.IB", "SYSDBA", "masterkey", "WIN1251") or die(ibase_errmsg().' on line: '.__LINE__); Result ibase_connect(): I/O error for file "/mnt/databases/XXX.IB" Error while trying to open file unknown Win32 error 3 Try stat /mnt/databases/XXX.IB File: `/mnt/databases/XXX.IB' Size: 46415872 Blocks: 90752 IO Block: 16384

How to filter FireDAC dataset by a DATE value constant?

ε祈祈猫儿з 提交于 2020-01-07 06:24:14
问题 procedure TForm2.Button1Click(Sender: TObject); begin with qryWithFilter do begin Filtered := False; OnFilterRecord := nil; // date separator may be used any from [' ', '-', '\', '.', '/'] // Filter := 'DATA_NAS < (''DatetoStr(date3)'')'; // Filter := 'DATA_NAS < ''28/06/1939'''; // Filter := 'DATA_NAS < (FormatDateTime(''dd/mm/yyyy'', ''28/06/1968''))'; // Filter := 'DATA_NAS < TO_DATE(''1996-07-29'',''yyyy-mm-dd'')'; Filter := 'DATA_NAS < (TO_DATE(''1996-07-29'',''yyyy-mm-dd''))'; Filtered

how can i make my search box jump from one keyword to another without it check every row of the database? [closed]

旧时模样 提交于 2020-01-07 05:29:05
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I got this code working for my app's search box, unfortunately when it search or filters, it checks every row on the database and then when the searched

whats the same function of FOUND_ROWS() in firebird?

自古美人都是妖i 提交于 2020-01-07 04:21:08
问题 dear all...i'm familiar with MySQL but not with Firebird. i want to change my php page, from MySQL into Firebird query.But i got some difficulty during change command FOUND_ROWS() . is there someone who know whats the same function of FOUND_ROWS() in Firebird? i have browsed in every sites but i have no answer. i'm stuck in this case.please help. 回答1: Similar to @Andrei K. answer. Answer to your question: There's no equivalent in Firebird for FOUND_ROWS() MySQL function/statement. Workaround