Search found 51 matches
- 17.07.2010, 21:26
- Forum: ZeosLib 7.0 Beta Forum
- Topic: ParamByName in MySql5
- Replies: 6
- Views: 807
- 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: ...
- 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.
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.
- 08.07.2010, 04:42
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Send to DB in UTF8
- Replies: 10
- Views: 911
- 08.07.2010, 02:43
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Send to DB in UTF8
- Replies: 10
- Views: 911
- 06.07.2010, 22:17
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Send to DB in UTF8
- Replies: 10
- Views: 911
- 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;
- 04.07.2010, 19:36
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Send to DB in UTF8
- Replies: 10
- Views: 911
- 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.
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.
- 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...
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...
- 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...
- 27.06.2009, 03:12
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Delphi 2009 Unicode problem
- Replies: 7
- Views: 1420
- 24.06.2009, 01:01
- Forum: ZeosLib 7.0 Beta Forum
- Topic: Delphi 2009 Unicode problem
- Replies: 7
- Views: 1420
- 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...
- 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