Unified SQL Function

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Unified SQL Function

Post by FredS » Tue 18 Nov 2014 22:42

OK playing around with this I tried a very simple:

"Select {fn CHAR(id)}, id from Client"

this should return 1 and 11, but
the built in Data Editor shows EmptyStr and garbage.. so does a data grid.

ID is an Integer field in a Firebird 2.5 Db

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Unified SQL Function

Post by ViktorV » Wed 19 Nov 2014 09:28

As it is stated in the SQL function paragraph of the Unified SQL section in UniDAC help: http://www.devart.com/unidac/docs/unisql.htm the CHAR function returns a character corresponding to the digital value of the passed argument. The character matching the code 11 is unreadable, so you see the empty string.

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Unified SQL Function

Post by FredS » Wed 19 Nov 2014 17:24

Got it, the function to use is 'TOCHAR'..

thanks

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Unified SQL Function

Post by ViktorV » Thu 20 Nov 2014 10:45

Thank you for your interest to our product. Feel free to contact us if you have any further questions.

Post Reply