FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Several topics with sqlite
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Several topics with sqlite [message #159622 is a reply to message #159571] Sat, 13 June 2009 07:47 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
I've asked for help on the sqlite mailing list. Pavel Ivanov replied with this alternate syntax that will work on sqlite:

UPDATE fud28_read
SET user_id=2, last_view=1244710953,
      msg_id=(SELECT last_post_id FROM fud28_thread
                    WHERE id = fud28_read.thread_id)
WHERE user_id=2
     AND thread_id in (SELECT id FROM fud28_thread
                                WHERE forum_id=4 AND last_post_date > 0)


The original query works on MySQL, PostgreSQL and Oracle - so, maybe they will support the original syntax in a future release.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Blank Page - Not Processing PHP pages
Next Topic: Upgrading script corrupted when create_file_list's php binary is modified
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 08:54:17 GMT 2024

Total time taken to generate the page: 0.03955 seconds