Thread: SQL Item System
View Single Post
  #12  
Old 05-14-2009, 02:47 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Player should not have ids of items he owns, rather the items should have the account name of the player they belong to. The items should also be indexed by their account name.
Quote:
Originally Posted by xXziroXx View Post
<snip>
#1. Why are you using AUTOINCREMENT?
#2. Do you know that the INTEGER PRIMARY KEY column is an alias for the built-in rowid column?
#3. VARCHAR is not a type in SQLite, it is just changed to TEXT, I suggest using that.
#4. If you only update the SQL when the player logs out then you're not using SQL correctly.
__________________

Last edited by Inverness; 05-14-2009 at 03:13 AM..
Reply With Quote