Fixed SQL statement bugs related to new Note.username member.
This commit is contained in:
parent
dccab45de3
commit
b368fa23b6
3
NEWS
3
NEWS
|
@ -11,6 +11,9 @@
|
|||
* Fixed an occasional bug that caused unexpected logouts. The solution was
|
||||
to move the session information into the database where it could be
|
||||
properly locked.
|
||||
* NOTE: After upgrading to this release, you must restart memcached to clear
|
||||
the cache. Failing to do so will cause errors with the Note object. This
|
||||
does not apply to Luminotes Desktop.
|
||||
|
||||
1.5.4: October 9, 2008
|
||||
* Fixed a visual bug in which clicking up or down to reorder your notebooks
|
||||
|
|
|
@ -227,7 +227,7 @@ class Notebook( Persistent ):
|
|||
select
|
||||
note_current.id, note_current.revision, note_current.title, note_current.contents,
|
||||
note_current.notebook_id, note_current.startup, note_current.deleted_from_id,
|
||||
rank_cd( search, query ) as rank, note_current.user_id, null, query
|
||||
rank_cd( search, query ) as rank, note_current.user_id, null, null, query
|
||||
from
|
||||
note_current, user_notebook, to_tsquery( 'default', %s ) query
|
||||
where
|
||||
|
@ -267,7 +267,7 @@ class Notebook( Persistent ):
|
|||
|
||||
return \
|
||||
"""
|
||||
select id, revision, title, contents, notebook_id, startup, deleted_from_id, rank, user_id, null,
|
||||
select id, revision, title, contents, notebook_id, startup, deleted_from_id, rank, user_id, null, null,
|
||||
title as summary
|
||||
from
|
||||
note_current
|
||||
|
|
Reference in New Issue