select does not return rows when index created.
my table is (simplified)
create table PostThread (
postThreadId int auto_increment not null primary key,
categoryId smallint not null,
udate timestamp not null ,
);
then, when I run following statement, some rows return.
select * from PostThread where categoryId=910 and udate < current_date
but, If index created, the same statement returns nothing. :(
create index PostThread_categoryId_udate on postThread (categoryId,
udate desc);
I'm using version 1.2.131.
and I have changed column names with alter table alter column rename
statement once.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.