Bug or something
Posted: Wed 25 May 2005 18:07
I have strange problem while using Prepare statement.
I have a table
create table tab
(
Time datetime not null,
a uniqueidentifier not null
);
and call a statement:
select *
from tab
-- some comment
where a < :param
After calling prepare on that statement I can't work with database anymore.
This only happens if the table looks like that (datetime and uniqueidentifier). When columns are another type then it works fine.
The same thing is when there is no comment in sql statement.
Then it works ok.
But when a comment is befoer 'where' word then it crashes my database, and I cant work with it anymore.
Anyone had the same problem or resolved it?
Or maybe this is a bug?
Kind regards
Bagieta
I have a table
create table tab
(
Time datetime not null,
a uniqueidentifier not null
);
and call a statement:
select *
from tab
-- some comment
where a < :param
After calling prepare on that statement I can't work with database anymore.
This only happens if the table looks like that (datetime and uniqueidentifier). When columns are another type then it works fine.
The same thing is when there is no comment in sql statement.
Then it works ok.
But when a comment is befoer 'where' word then it crashes my database, and I cant work with it anymore.
Anyone had the same problem or resolved it?
Or maybe this is a bug?
Kind regards
Bagieta