diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-20 10:51:42 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-20 10:51:42 +0000 |
commit | cbd1e5abe69b7ad6e92b95142123e99f544b747e (patch) | |
tree | bcc7b5d9898b223a310c790f9a856e3318ad98dd /lib | |
parent | 3dc8780c15985ff86699addff1f4dbe43c6be19a (diff) |
Fixed error when creating a new thread, changed type of threads_posts.num to smallint, and added (yet another) foreign key constraint to the threads table
git-svn-id: svn://vndb.org/vndb@100 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Util/DB.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/DB.pm b/lib/VNDB/Util/DB.pm index a309fec8..17ec18af 100644 --- a/lib/VNDB/Util/DB.pm +++ b/lib/VNDB/Util/DB.pm @@ -1477,7 +1477,7 @@ sub DBAddThread { # %options->{ title hidden locked tags } INSERT INTO threads (title, hidden, locked) VALUES (?, ?, ?) RETURNING id|, - $o{title}, $o{hidden}, $o{locked} + $o{title}, $o{hidden}?1:0, $o{locked}?1:0 )->{id}; $s->DBExec(q| |