#459 typo in docLib Sql

jakb Fri 13 Feb 2009

hi

http://www.fandev.org/doc/docLib/Sql.html

Paragraph with error

Queries
-------
[...]

To fetch as a list of rows:

stmt := db.sql("select title, year from Books
              where author = @author" and year > @year").prepare

Correct is without " after @author:

stmt := db.sql("select title, year from Books
            where author = @author and year > @year").prepare

this little error gave me confusing results in form of

Leading space in multi-line Str must be 87 spaces

Thanks for correcting this

ben

brian Fri 13 Feb 2009

good catch, thanks

I pushed a fix to hg

Login or Signup to reply.