Joined: Aug 27, 2002 Posts: 15057 Location: Kansas
Posted:
Tue Oct 28, 2003 7:05 am
I know many PN sites use this w/o any problem. What version of MySQL are you running? You should be able to have a NULL column on an index.
You could try this. In kissq-sql.php find this code
Code:
pDate varchar(10) default NULL
and modify it to
Code:
pDate varchar(10) default NOT NULL
Then try install again. Even if that works, the application may not because the application does not exepect to have a value for purchase date. I'm just trying to determine if it's your version of MySQL.
Thankfully, a more intelligent friend of mine discovered and fixed the problem. I would email or attach the file but it does not seem possible on this forum. Here is the solution, at least for PN 726 users:
The problem was in the code used to create the tables - there was a syntax error.
This code: pDate varchar(10) default NULL,
Should be: pDate varchar(10) NOT NULL default '',
In the file kissq-sql.php you will want to replace line 130 with:
$query = "CREATE TABLE kissq_portfolio (UID varchar(16) NOT NULL default '', Symbol varchar(16) NOT NULL default '', nShares mediumint(9) default '0', pPrice decimal(11,5) unsigned NOT NULL default '0.00000', fees varchar(11) default NULL, uniqueid int(10) unsigned NOT NULL auto_increment, pDate varchar(10) NOT NULL default '', UNIQUE KEY UID (UID,Symbol,uniqueid), KEY pDate (pDate), KEY uniqueid (uniqueid)) TYPE=MyISAM";
Joined: Aug 27, 2002 Posts: 15057 Location: Kansas
Posted:
Fri Oct 31, 2003 3:59 pm
As I said in my email to you, that may resolve the issue with your installation because of the version of either MySQL or phpMyAdmin. But the point is, is that it is supposed to be NULL and it works on hundreds of other installs. That's why I believe it may be your version of MySQL or phpMyAdmin.
I just tested this on my system using the original query
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum