firedac

Delphi Firedac not recognizing new ALTER feature in sqlite3

风流意气都作罢 提交于 2021-02-17 06:25:09
问题 SQLite3 release 3.25 and higher allows me to "ALTER TABLE myTable RENAME COLUMN oldColName TO newColName" . But I get an error "near RENAME" when I execute this in my Delphi code, but it works running the new sqlite3.dll from the command line or with another utility. This works: HerdConnection.ExecSQL('ALTER TABLE myTable RENAME TO NewNameTable'); This fails: HerdConnection.ExecSQL('ALTER TABLE myTable RENAME COLUMN oldcolName TO NewColName'); Since i installed the new sqlite3.dll driver, the

Delphi Firedac Scripts and Exclamation Mark

。_饼干妹妹 提交于 2021-02-11 13:21:45
问题 I experienced a strange behaviour in Firedac (Delphi 10.3.3) against Firebird 3.04. The following statement insert into icds(id,title) values (55,'!M01.0;M02.6;M03.5'); creates a record in the database like this id title -- ------------- 55 .0;M02.6;M03.5 when run with the fdScript component. If I run the same script with any database IDE, the record is created correctly (same database, same Server). It is defintively related to the exclamation mark because if I replace replace '!' by '?' the

Delphi Firedac Scripts and Exclamation Mark

一曲冷凌霜 提交于 2021-02-11 13:21:15
问题 I experienced a strange behaviour in Firedac (Delphi 10.3.3) against Firebird 3.04. The following statement insert into icds(id,title) values (55,'!M01.0;M02.6;M03.5'); creates a record in the database like this id title -- ------------- 55 .0;M02.6;M03.5 when run with the fdScript component. If I run the same script with any database IDE, the record is created correctly (same database, same Server). It is defintively related to the exclamation mark because if I replace replace '!' by '?' the

Execute FireDAC connection editor at run time

不问归期 提交于 2021-02-08 11:08:17
问题 I would like to execute FireDAC connection editor at run time, but haven't found which class is the Component Editor for TFDConnection . For example, it is easy to find out which class is the Component Editor for TADOConnection. 回答1: You can excute FireDac connection editor by calling Execute method of TfrmFDGUIxFormsConnEdit which you can find it in FireDAC.VCLUI.ConnEdit unit. Here is an example how to do it: Uses ... FireDAC.VCLUI.ConnEdit; .. var FDConnEditor : TfrmFDGUIxFormsConnEdit;

Execute FireDAC connection editor at run time

 ̄綄美尐妖づ 提交于 2021-02-08 11:07:36
问题 I would like to execute FireDAC connection editor at run time, but haven't found which class is the Component Editor for TFDConnection . For example, it is easy to find out which class is the Component Editor for TADOConnection. 回答1: You can excute FireDac connection editor by calling Execute method of TfrmFDGUIxFormsConnEdit which you can find it in FireDAC.VCLUI.ConnEdit unit. Here is an example how to do it: Uses ... FireDAC.VCLUI.ConnEdit; .. var FDConnEditor : TfrmFDGUIxFormsConnEdit;

FireDAC SQLITE : No such table column :PRAGMA_TABLE_INFO

假装没事ソ 提交于 2021-01-29 13:27:06
问题 i'm building app with delphi rio 10.3 with firedac sqlite3 pragma function not working with 'SELECT COMMAND' AS I Try Below: procedure Tamdf.Button31Click(Sender:TObject); begin MyFDQuery.Open('SELECT name FROM PRAGMA_table_info("DOCM")'); ShowMessage(MyFDQuery.Fields[0].AsString); end; i receive ERROR message :"ERROR: no such table column: PRAGMA_table_info.name" what i did wrong ? 回答1: With FireDAC you can use workaround with create temp table "table_info": MyFDQuery.Open( 'DROP TABLE IF

FireDAC equivalent of DBExpress briefcase model

淺唱寂寞╮ 提交于 2021-01-29 04:30:27
问题 I have been using DBExpress connections to various databases (mostly MSSQL, Sybase SQL) with: SQLConnection -> SQLDataSet -> DataSetProvider -> ClientDataSet. I need to connect to the databases in a fashion that does NOT write changes back to the tables. So, the DataSetProvider has ResolveToDataSet:=false, and the ClientDataSet has LogChanges:=false (for performance). In use I connect the SQLConnection, open the ClientDataSet, and then close the SQLConnection. I can then manipulate the

FireDAC Query dropping special characters in SQL statement to SQL Server

你离开我真会死。 提交于 2021-01-28 08:13:24
问题 I have hit this issue off and on in Delphi 10.3 using FireDAC and the EMS Rad Server. I have not experienced it in Delphi 10.2 or below, but I am not using FireDAC anywhere but in Delphi 10.3. The issue I am experiencing is some special characters seem to be getting stripped out of the SQL statements before they reach the Database. For example, if I run: update messageread set MessageDeliveredDateTime = '8/11/2020 6:33:45 PM' where messageread.dts in ('5/7/2020 12:48:20 PM-!+[[786', '5/7/2020

Revisited: TClientDataset “Missing data provider or data packet”

痴心易碎 提交于 2020-12-15 05:41:07
问题 With a dynamically created TFDQuery , TClientDataSet , and TDataSetProvider I bump into the "Missing data provider or data packet" with this code: procedure ResetSavedPasswords(ADataModuleDataBaseAdmin : TDataModuleDataBaseAdmin); var lQuery : TFDQuery; lCDS : TClientDataSet; lProvider : TDataSetProvider; begin lFrmBezig := TFormBezig.Create(nil); lQuery := TFDQuery.Create(nil); lProvider := TDataSetProvider.Create(Application); lCDS := TClientDataSet.Create(nil); try lQuery.Connection :=