-
Content Count
145 -
Joined
-
Last visited
-
Days Won
1
Everything posted by weirdo12
-
1. Open the project. 2. Open the TDataModule source file. 3. Change the Name property of the TDataModule to a new unique name. 3. Click File > Save As... and save it with a new file name. 4. Add the original TDataModule back to the project. In the new TDataModule you can start deleting components and event handlers. 1. Select the component you want to delete. 2. In the Object inspector, click the Events tab. 3. For any events that have been created for the component, double-click the event handler name. 4. Delete the code within the event handler BUT DO NOT delete the event handler. procedure TForm1.DataSource1DataChange(Sender: TObject; Field: TField); begin // delete the code in here but // leave everything between procedure and end; end; 5. Click File > Save and the handler will be removed.
-
I should have said that an alternative way is to use IndexFieldNames instead of queries with parameters. Both methods produce the same results.
-
IndexFieldNames in Query2 and Query3 should be set to CUSTNO. A parameter is not required. Query3.SQL = ' SELECT CUSTNO, sum(AMOUNTPAID) as TOTAL from ORDERS GROUP BY CUSTNO';
-
If you are using TFDQuery, have you tried using the MasterSource property to connect Query2 to Query1? Query2.IndexFieldNames = fk_id_employee Query2.MasterFields = id Query2.MasterSource = Query1 You can use TFDLocalSQL and a TFDMemTable to do a summary of Query2.
-
Column LN does not exist in fdToTable. It may exist in your database but it's not in the table objects field collection.
-
From Delphi+PostgresDAC (PostgresSQL) To Delphi+FireDAC (PostgresSQL)
weirdo12 replied to Squamis's topic in Databases
Use TFDScript with just the INSERT and DELETE statements. -
Why are you using dbExpress? Is it an existing application that worked properly with another version of C++Builder?
-
Done. https://quality.embarcadero.com/browse/RSP-40382
-
This might be of some help to Dmitry I suppose. These also work: SELECT * FROM wares$rules "wares$ rules$" WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "wares $ rules $" WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "$" WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "$$$$" WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "$ $" WHERE fldidxwarerule = :dummy_string_param But these do not: SELECT * FROM wares$rules "$$" WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "$$$" WHERE fldidxwarerule = :dummy_string_param
-
To summarize/simplify... These work: SELECT * FROM wares$rules "wares$rules$" SELECT * FROM wares$rules WHERE fldidxwarerule = :dummy_string_param SELECT * FROM wares$rules "wares$$rules$$" WHERE fldidxwarerule = :dummy_string_param But when there is more than one single $ in the table name and there is a parameter in the query it does not: SELECT * FROM wares$rules "wares$rules$" WHERE fldidxwarerule = :dummy_string_param [FireDAC][Phys][PG][libpq] ERROR: syntax error at or near ":"
-
I am not seeing that problem with PostgreSQL 14.5 using FireDAC. This works fine too: SELECT "$$1$$".row_id, "$$1$$".description, :dummy_string_param, :dummy_int_param FROM t$1$$$$$$$$$ "$$1$$" LEFT OUTER JOIN "t1$t2$t3" ON "$$1$$".row_id = "t1$t2$t3".row_id Edit: This gives me a syntax error - only when parameters are included (which makes some sense): SELECT "$$1$$".row_id, "t1$t2$t3".row_id, "$$1$$".description, :dummy_int_param FROM t$1$$$$$$$$$ "$$1$$" LEFT OUTER JOIN "t1$t2$t3" ON "$$1$$".row_id = "t1$t2$t3".row_id [FireDAC][Phys][PG][libpq] ERROR: syntax error at or near ":" This works: SELECT "$$1$$".row_id, t1.row_id, "$$1$$".description, :dummy_int_param FROM t$1$$$$$$$$$ "$$1$$" LEFT OUTER JOIN "t1$t2$t3" t1 ON "$$1$$".row_id = t1.row_id
-
[FireDAC](Comp)[DS]-306. Command [FDTable] text must be not empty. (solved)
weirdo12 replied to JohnLM's topic in Databases
I was going to point out the Data property but you said you only wanted to discuss CopyDataSet() 😄 Good to hear you've got a solution. -
[FireDAC](Comp)[DS]-306. Command [FDTable] text must be not empty. (solved)
weirdo12 replied to JohnLM's topic in Databases
From what I gather, you were assuming CopyDataSet would automatically create a new table in an SQLite database. Is that correct? -
[FireDAC](Comp)[DS]-306. Command [FDTable] text must be not empty. (solved)
weirdo12 replied to JohnLM's topic in Databases
Do you have a SELECT query in the Command property of the TFDTable component? -
Delphi sqlite datatype IMAGE ??? does this really exists?
weirdo12 replied to Al T's topic in Databases
What you might be wondering is how FireDAC interprets a column that is defined to have the data type IMAGE when that data is read from the database. IMAGE is not a SQLite data type. Have a look at this page: https://www.sqlite.org/flextypegood.html -
Do you qualify to connect to the database? ADDITIONAL LICENSE TERMS APPLICABLE TO RAD STUDIO, DELPHI AND C++BUILDER PROFESSIONAL, PROFESSIONAL WITH MOBILE, COMMUNITY EDITION, AND PROFESSIONAL ACADEMIC EDITIONS In the event Licensee has obtained a RAD Studio, Delphi or C++Builder Professional, Professional with Mobile or Professional Academic product license then the following terms apply. Subject to the terms and conditions of this Agreement, Licensor grants to Licensee as the licensed user of the Product the limited right to use those portions of the Product identified as "dbExpress" and "FireDAC", in executable form only, to access a local database installed on the same machine as the Work. Licensee may not use that portion of the Product identified as "dbExpress" or "FireDAC" in association with a database located on a different machine other than the machine on which the Works are installed.
-
TFDScript.ExecuteALL does not seem to behave as expected
weirdo12 replied to Dustin T Waling's topic in Databases
Thanks for following up on the issue you were having. -
What are you using as the server name?
-
TFDScript.ExecuteALL does not seem to behave as expected
weirdo12 replied to Dustin T Waling's topic in Databases
My previous post was way off base. I'm still interested why you've had so much trouble getting TFDScript to work as you expected. I use it it with SQL Anywhere, SQLite, SQL Server, PostgreSQL and MySQL. -
TFDScript.ExecuteALL does not seem to behave as expected
weirdo12 replied to Dustin T Waling's topic in Databases
Are you setting the TFDScript.ScriptOptions.CommandSeparator property? Are all SQL statements terminated? sql_script->SQL->Add("ALTER TABLE \"dba\".truck RENAME dsptch15_truck;"); What does the code you a using look like? -
Do you need an ARM64 compiler for Windows?
weirdo12 replied to Lars Fosdal's topic in Cross-platform
Lars, to answer your question - no. -
Did you consider just using SQLite?
-
FireDac replacement ClientDataset in 3 tier application
weirdo12 replied to al17nichols's topic in Databases
If you can, purchase this: http://www.jensendatasystems.com/firedacbook/ -
I see this is an old question 😉 Anyway, I should have asked: Is there a particular reason you are using Firebird?