database query trouble with certain table configuration
Posted: 16 Sep 2007, 22:18
executeQuery returns 'None' when the select * operation is performed on a table with the following configuration:
account_id int(10) unsigned not null,
username char(32) not null,
session_id char(32) not null,
entered_game tinyint(1) unsigned not null,
session_started datetime not null,
last_chat datetime not null,
primary key(account_id)
With much testing I found that it works perfectly when the last field has been dropped, or replaced by anything else. I don't remember all of the configurations that I tried, but it seems like the problem revolves around datetime.
David
account_id int(10) unsigned not null,
username char(32) not null,
session_id char(32) not null,
entered_game tinyint(1) unsigned not null,
session_started datetime not null,
last_chat datetime not null,
primary key(account_id)
With much testing I found that it works perfectly when the last field has been dropped, or replaced by anything else. I don't remember all of the configurations that I tried, but it seems like the problem revolves around datetime.
David