firedac

AnyDac aka FireDac cannot generate update query

孤街醉人 提交于 2019-12-13 15:13:35
问题 I was using UniDac for a long time now and decided to move on to FireDac as it has good Asynch methods after moving on i saw that none of my data editing works anymore it gives me an error: [FireDAC][Phys]-330. Cannot generate update query. Update table undefined. What I am trying to do here is i have a TFDStoredProc component who gets all the data from the database and lets me edit it, with unidac I could easily edit the data without any problem like this: StoredProc.Edit;

Datasnap\FireDAC: Query executed twice

≡放荡痞女 提交于 2019-12-13 05:38:55
问题 I have the following problem: 1) I use Delphi XE7 to develop a 3-layer system. 2) The server layer, created with datasnap using REST. 3) I use Firebird as database and the access is performed with FireDAC. 4) I have a sequence with value 01 . 5) I created the following query in the server layer: Select GEN_ID (gen_my_sequence, 1) from rdb $ database 6) On the server returns the sequence value in the query is: 02 . 7) But the client layer returns 03. I do not understand why the query is

FireDAC truncated error message in SQL Server

笑着哭i 提交于 2019-12-13 02:42:44
问题 FireDAC is returning a truncated message in TClientDataset.OnReconcileError . The message is [FireDAC][Phys][ODBC][Microsoft][SQL Server Native Client 11.0][SQL Server]The INSERT statement conflicted with the FOREIGN KEY constraint "FK_NAME". The conflict occurred in database "DATABASENAME", table "dbo.TABLENAME", column ''CD The error comes from Datasnap.DBClient.TCustomClientDataSet.ReconcileCallback , parameter pErrMessage. Call stack of the error: ucdClientDataSet.TcdClientDataSet

FireDac Firebird and Android

柔情痞子 提交于 2019-12-12 19:03:13
问题 Are there any other components I need to establish a firebird connection on a mobile android device in addition to FireDac? I have set up and tested a connection to a remote server using Firedac, but when I try to run the application on an Android device, it hangs trying to make the connection. What am I missing? 回答1: You can't connect directly since you are (probably) missing the client library on the device. I'm not aware of availability of the client library for Android platform but I saw

How to enable wirecompression on Firebird 3.0

孤街浪徒 提交于 2019-12-12 18:33:11
问题 I work with Firebird and Delphi, I want to implement access via internet with wirecompression; But I am unable to activate it. I have followed the steps inside this document for the new parameter(one of the few I was able to find) How to enable WireCompression on Firebird 3.0 using FireDAC In the tests I use Windows server 2012 R2 Firebird : Firebird-3.0.4.33054_0_Win32(32 bits) Also copied to executable folder. fbclient.dll zlib1.dll (idem server and client) created firebird.conf with

Retrieve output parameter from FireDac stored procedure

浪子不回头ぞ 提交于 2019-12-12 18:07:18
问题 I've this Stored Procedure defined within a Firebird Database: create or alter procedure GET_MSG ( IDLNG smallint, IDMSG integer) returns ( MSG varchar(200) character set UTF8) as begin IF (:IDMSG > 40000) THEN BEGIN IF (:IDLNG = 1) THEN BEGIN SELECT NOMBRE01 FROM XMSG2 WHERE ID_XMSG2 = :IDMSG INTO :MSG; EXIT; END IF (:IDLNG = 2) THEN BEGIN SELECT NOMBRE02 FROM XMSG2 WHERE ID_XMSG2 = :IDMSG INTO :MSG; EXIT; END END ELSE BEGIN IF (:IDLNG = 1) THEN BEGIN SELECT NOMBRE01 FROM XMSG WHERE ID_XMSG

How to enable WireCompression on Firebird 3.0 using FireDAC

大兔子大兔子 提交于 2019-12-12 10:58:10
问题 I am looking to connect to Firebird Server 3.0 using WireCompression. This being new feature since version 3.0 I'm having a hard time to get it to do so and the only documented instructions I can find is setting WireCompression to TRUE in firebird.conf and use the connect parameter "wirecompression=true". This is what I've got this far: firebird.conf: # Firebird configuration file for Firebird 3.0 64-bit SuperServer # Optimized by IBSurgeon (www.ib-aid.com) for HQbird distribution. #

Android delphi application Segmentation fault (11) exception when calling Firedac

大憨熊 提交于 2019-12-11 20:38:20
问题 I have problem with Delphi XE5 Firedac application. I use ZTE Blade 3 phone to run application. I used deployment manager to add database file to assets\internal directory. But when I call FDQuery1.FieldByName('Nimi').AsString it raises exception Segmentation fault (11).Thanks. FDQuery1.SQL.Clear; FDQuery1.SQL.Add('SELECT * FROM Laskuttaja'); FDQuery1.Open(); FDQuery1.First; while(not FDQuery1.Eof) do begin FormTiedot.EditNimi.Text := FDQuery1.FieldByName('Nimi').AsString; FormTiedot

Indexes don't work in FDQuery

廉价感情. 提交于 2019-12-11 10:47:36
问题 I have a FDQuery that feeds data to a grid. When the user clicks on a column I want the grid to order on that column. Because I want to be able to sort on multiple columns, I cannot use the autosort option of the grid. I tried the following code in my proof of concept. However it does not work. procedure TForm31.JvDBGrid1TitleBtnClick(Sender: TObject; ACol: Integer; Field: TField); const sDesc = 1; sASC = 2; sNone = 0; var i: integer; SortClause: string; AField: TField; AIndex: TFDIndex;

Delphi EMS FireDAC: Cannot open dataset [FDMemTable]

非 Y 不嫁゛ 提交于 2019-12-11 09:36:31
问题 I am working with a simple client server application using EMS(i.e: for future iOS application) in Delphi. This question is the continuation of my previous question with a different error. This is my previous question with different problem from which I have followed the suggestion given by Marco. Problem: Now I have an error when I am passing parameter from client to server. Project EMS_Test_Client_Project.exe raised exception class EFDException with message '[FireDAC][Comp][DS]-206. Cannot