VS 2005 Using sqldatasource queries with "where" clause

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
TillmanZ
Posts: 19
Joined: Sat 13 May 2006 04:11

VS 2005 Using sqldatasource queries with "where" clause

Post by TillmanZ » Mon 15 May 2006 03:43

Hi!

I want to use an sqldatasource with a select statement like this:

select a, b, c from table where d = Profile.custominfo;

VS 2005 puts it like this:

select a, b, c from table where d = ([custominfo] = ?);

and then it adds:




Unfortunately that does not work with the mysql connector.

Any ideas?

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Mon 15 May 2006 07:58

You should remove brackets manually.

Post Reply