Search found 51 matches

by trob
17.07.2010, 21:26
Forum: ZeosLib 7.0 Beta Forum
Topic: ParamByName in MySql5
Replies: 6
Views: 807

somebody?
by trob
13.07.2010, 14:09
Forum: ZeosLib 7.0 Beta Forum
Topic: ParamByName in MySql5
Replies: 6
Views: 807

ParamByName in MySql5

Hello I want to set a MediumBlob field in a MySQL5 db. I use this code: ZQuery1.SQL.Text:='UPDATE table SET photo=:pic WHERE key=123'; ZQuery1.Params.ParamByName('pic').Assign(Image1.Picture.Graphic); ZQuery1.ExecSQL; Now, in Zeos7 i get an error message: Unsupported data type. In the log of MySQL: ...
by trob
13.07.2010, 13:10
Forum: ZeosLib 7.0 Beta Forum
Topic: DisplayFormat
Replies: 2
Views: 457

DisplayFormat

Hello

Why is the DisplayFormat unuseable?
I set DisplayFormat of a ZReadOnlyQuery's date field to "yyyy-mm-dd", but if i use this field as AsString, it shows the date in Window's local format.

This problem was not in the old version of Zeos.

I use Delphi 2010 and Zeos 7.

Thanks.
by trob
08.07.2010, 04:42
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

No problem, now i use the code above, and it works fine.
by trob
08.07.2010, 02:43
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

OK.

A want to see every db-change in the MySQL log, and it logs only the SQL commands. The parameters can't be seen in the log.

I know, there are better solutions for logging, but until i programming it, i use MySQL's log.
by trob
06.07.2010, 22:17
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

If you use some normal language, i would answer you.

Yes, i have a good reason.
by trob
06.07.2010, 12:10
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

At the end, this is the solution:

Code: Select all

function convtodb(input: string):string;
var a: PAnsiChar;
    w: PWideChar;
Begin
  GetMem(w,255);
  GetMem(a,255);
  StringToWideChar(input,w,255);
  UnicodeToUtf8(a,w,255);
  Result:=a;
  FreeMem(w);
  FreeMem(a);
End;
by trob
04.07.2010, 19:36
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

it does not work :(

It still sends in cp1250
by trob
04.07.2010, 16:36
Forum: ZeosLib 7.0 Beta Forum
Topic: Send to DB in UTF8
Replies: 10
Views: 911

Send to DB in UTF8

Hello

How can i send the SQL commands to the database in UTf8? I use Delphi 2010.

The DB and the fields are UTF8. I want to send datas in UTF8 too, so none of characters are lost by the Unicode > latin/cp1250 > Utf8 conversions.
by trob
29.06.2009, 00:42
Forum: Off Topic
Topic: Rave Reports 7.6.2
Replies: 1
Views: 22835

Rave Reports 7.6.2

Hello

Does anybody have the Rave Reports 7.6.2 for the Delphi 2009?

I have the 7.6.0, on the Delphi DVD, but it does not work. I have read about this new version, what is downloadable from the Embarcadero site, but i can't login...
by trob
27.06.2009, 17:37
Forum: ZeosLib 7.0 Beta Forum
Topic: Delphi 2009 Unicode problem
Replies: 7
Views: 1420

I get the solution from the MySQL help... After connecting: ZQueryExec.SQL.Text:='SET character_set_client = utf8'; ZQueryExec.ExecSQL; ZQueryExec.SQL.Text:='SET character_set_connection = utf8'; ZQueryExec.ExecSQL; ZQueryExec.SQL.Text:='SET character_set_results = Latin2'; ZQueryExec.ExecSQL; And e...
by trob
27.06.2009, 03:12
Forum: ZeosLib 7.0 Beta Forum
Topic: Delphi 2009 Unicode problem
Replies: 7
Views: 1420

Thanks, but i have done this already. I had to, because the program did not get anything from the DB. So now all querys that read datas from the DB work fine, just the writing have this coding problem.
by trob
24.06.2009, 01:01
Forum: ZeosLib 7.0 Beta Forum
Topic: Delphi 2009 Unicode problem
Replies: 7
Views: 1420

Oh, why don't you plan to be a D2009 user? What is wrong with it?
by trob
23.06.2009, 04:03
Forum: ZeosLib 7.0 Beta Forum
Topic: Delphi 2009 Unicode problem
Replies: 7
Views: 1420

Delphi 2009 Unicode problem

Hello, I have a program in Delphi 2009, the datas are in MySQL by Zeos7. (Yes, i know it is in alpha state.) In D2007 everything was fine, but in D2009 there is a problem with character coding. I get the datas from MySQL by TZReadOnlyQuery, and write them by TZQuery's SQL commands. The loading is fi...
by trob
19.06.2009, 12:15
Forum: ZeosLib 7.0 Beta Forum
Topic: Zeos 7 Alpha and Delphi 2009 Support - Official Thread
Replies: 97
Views: 28850

Hello,

Do You know when will it be Beta?