witten
/
luminotes
Archived
1
0
Fork 0

Fixed ordering of SQL offset/limit clauses to make SQLite happy.

This commit is contained in:
Dan Helfman 2008-08-18 18:05:51 -07:00
parent 58cf113f71
commit 98042c5c3f
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class Notebook( Persistent ):
else:
limit_clause = ""
return "select id, revision, title, contents, notebook_id, startup, deleted_from_id, rank, user_id from note_current where notebook_id = %s order by revision desc offset %s%s;" % ( quote( self.object_id ), start, limit_clause )
return "select id, revision, title, contents, notebook_id, startup, deleted_from_id, rank, user_id from note_current where notebook_id = %s order by revision desc%s offset %s;" % ( quote( self.object_id ), limit_clause, start )
def sql_load_non_startup_notes( self ):
"""