VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
TSimpleDataSet filtering

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
bmarinel



Joined: 03 Apr 2003
Posts: 18

PostPosted: Thu Apr 03, 2003 2:34 pm    Post subject: TSimpleDataSet filtering Reply with quote

Hi,

I am trying to convert a simple BDE application to dbExpress in Delphi 7. I am using the dbexpsyb.dll library with a TSQLConnection. Then I connect a TSimpleDataSet. It seems to work until I turn on filtering. I can't get any records once I aply a filter. The same filter worked with the BDE. Any ideas?

Regards,

Bill
Back to top
View user's profile Send private message
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Sun Apr 06, 2003 2:11 am    Post subject: Filtering Reply with quote

We have checked some simple cases but a problem was not found.
(Just assign a necessary expression to a Filter property and set Filtered to True)
Can you send any sample illustrating a problem to our support team (support@visoco.com) ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bmarinel



Joined: 03 Apr 2003
Posts: 18

PostPosted: Sun Apr 06, 2003 2:11 pm    Post subject: TSimpleDataSet filtering Reply with quote

I finally got it working. Very Happy It seems that in my filter (with dbExpress) I have to pad my constant expression with trailing blanks.

If column is defined as a char(10), and I specify my filter as:

column = 'X'

It doesn't work. If I use:

column = 'X ' { X with nine trailing spaces }

It does work. I guess I will need to be very careful with trailing blanks. Other than this problem, things seem to be working pretty well. I have some more testing to do, but I am hopeful that I can use your product for my application.

Thanks for your reply.

Bill
Back to top
View user's profile Send private message
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Sun Apr 06, 2003 7:31 pm    Post subject: Trailing blanks Reply with quote

There is a feature of the driver. It doesn't trim a trailing blanks of "char" fields.
So, a query
Code:
select convert(char(10), "X")
returns "X " (with 9 trailing blanks) but a query
Code:
select convert(varchar(10), "X")
returns "X"
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group