Search found 54 matches

by davidmarcus
Mon 29 Aug 2022 16:46
Forum: MySQL Data Access Components
Topic: 'utf8' charset is now deprecated
Replies: 8
Views: 11532

Re: 'utf8' charset is now deprecated

I do

Code: Select all

set names utf8mb4 collate utf8mb4_unicode_520_ci
by davidmarcus
Mon 29 Aug 2022 16:34
Forum: MySQL Data Access Components
Topic: 'utf8' charset is now deprecated
Replies: 8
Views: 11532

Re: 'utf8' charset is now deprecated

My Delphi app is using Unicode. I have Options.UseUnicode = True and Options.CharSet = 'utf8mb4'. I think my app is working. I did test it back then. But, if your app is using Latin 1, then I don't know what happens.
by davidmarcus
Mon 29 Aug 2022 15:09
Forum: MySQL Data Access Components
Topic: 'utf8' charset is now deprecated
Replies: 8
Views: 11532

Re: 'utf8' charset is now deprecated

I think utf8mb4 works with MyDAC. See viewtopic.php?f=7&t=31291
by davidmarcus
Thu 07 Jul 2022 17:54
Forum: MySQL Data Access Components
Topic: How can I control which field are being updated?
Replies: 5
Views: 10038

Re: How can I control which field are being updated?

I don't know. I usually use TMyCommand to do updates. I don't know what TMyQuery can do.
by davidmarcus
Thu 07 Jul 2022 16:46
Forum: MySQL Data Access Components
Topic: How can I control which field are being updated?
Replies: 5
Views: 10038

Re: How can I control which field are being updated?

Not sure I understand the question. If you have multiple clients updating the same data, you need some form of locking. There are various ways to do this.
by davidmarcus
Sun 06 Mar 2022 20:09
Forum: dbForge for MySQL
Topic: Switch query tabs via keyboard
Replies: 0
Views: 8500

Switch query tabs via keyboard

If I do a query that has more than one statement, the results are shown in tabs, e.g., "Query1", "Query2". Is there a way to switch between the tabs using the keyboard?

With other clients, I start my session by doing

Code: Select all

set names 'utf8mb4' collate 'utf8mb4_unicode_520_ci';
When I do this in dbForge, it says
Characer set 'utf8mb4' is not supported
I'm using the trial version of dbForge Studio 202 for MySQL 9.0.791. The server is MariaDB 10.3.31 or 10.3.25
by davidmarcus
Sun 05 Dec 2021 13:48
Forum: MySQL Data Access Components
Topic: Best way to check if database server available
Replies: 3
Views: 20644

Re: Best way to check if database server available

What is your purpose in doing this?
by davidmarcus
Fri 30 Apr 2021 19:17
Forum: MySQL Data Access Components
Topic: New Event tmyConnection.onwarning
Replies: 2
Views: 4599

Re: New Event tmyConnection.onwarning

Documentation for TMyWarningEvent and TMyErrors would be helpful. Also, EMyError has an ErrorLevel property that is not documented.
by davidmarcus
Sat 23 Jan 2021 20:57
Forum: MySQL Data Access Components
Topic: Help should clarify capabilities of TMyCommand vs TMyScript for multiple statements
Replies: 1
Views: 2699

Help should clarify capabilities of TMyCommand vs TMyScript for multiple statements

The Help for the TMyScript Class and the TMyCommand Class give the impression that TMyCommand can only execute one SQL statement at a time. However, the code for TMyCommand uses the CLIENT_MULTI_STATEMENTS flag, so TMyCommand can handle multiple statements separated by semicolons.
by davidmarcus
Fri 08 Jan 2021 14:17
Forum: MySQL Data Access Components
Topic: Get OUT Param with TMyCommand
Replies: 7
Views: 5868

Re: Get OUT Param with TMyCommand

Use TMyQuery.
by davidmarcus
Thu 07 Jan 2021 13:47
Forum: MySQL Data Access Components
Topic: Get OUT Param with TMyCommand
Replies: 7
Views: 5868

Re: Get OUT Param with TMyCommand

select sum(...) as Foo ...

DM.GetRecCount.FieldByName( 'Foo' ).AsInteger
by davidmarcus
Tue 14 Jul 2020 16:01
Forum: MySQL Data Access Components
Topic: ExecSQL Result
Replies: 4
Views: 3851

Re: ExecSQL Result

If you use TMyCommand, there is a RowsAffected property.
by davidmarcus
Sat 16 May 2020 15:12
Forum: MySQL Data Access Components
Topic: Help for TMyConnection.Options incorrectly says it lists all options
Replies: 1
Views: 3172

Help for TMyConnection.Options incorrectly says it lists all options

The Help for "TMyConnection.Options Property" says, "Descriptions of all options are in the table below", but if you go to the page for "TMyConnectionOptions Members", you find that there are more options.

MyDAC 10.1.3
by davidmarcus
Thu 14 May 2020 16:50
Forum: MySQL Data Access Components
Topic: "Increasing Perfomance" Help page needs updating
Replies: 1
Views: 2901

"Increasing Perfomance" Help page needs updating

The Help page Using MyDAC > Increasing Perfomance refers to

T:Devart.MyDac.TMySQL
TDAUpdateSQL

These don't appear to exist.

The page also refers to

P:Devart.Dac.TDADataSetOptions.CompressBlobMode

This option does exist, but maybe the Help meant to link to it.

MyDAC 10.1.3.
by davidmarcus
Tue 14 Jan 2020 18:24
Forum: MySQL Data Access Components
Topic: TMyQuery, read whole record at once?
Replies: 5
Views: 2164

Re: TMyQuery, read whole record at once?

Code: Select all

procedure ProcessRecord( Query: TMyQuery );
begin
   ..
   var1 := Query.FieldByName('field1').AsString;
   var2 := Query.FieldByName('field2').AsInteger;
   ..
end;
The compiler will just pass the pointer to the TMyQuery object.