Skip to content

Data explorer seems fragile with respect to semicolons #21

Closed

Description

@mlucy

ssutch2 on IRC reported that when he ran:

r.db('lazybeaver').table('log_entries').filter(function(e) { return e('message').eq('session start'); }).run()

in the data explorer it failed, but when he ran:

r.db('lazybeaver').table('log_entries').filter(function(e) { return e('message').eq('session start')}).run()

it worked.

This is a problem because the documentation we give people contains semicolons for things like filter queries (http://www.rethinkdb.com/api/).

Activity

  1. ghost assigned on Nov 10, 2012
  2. mlucy commented on Nov 10, 2012

    @mlucy
    MemberAuthor

    In the interim, I removed all the semicolons from inside javascript functions on the website since the data explorer is by far the most common use case. If this is terrible for some reason I don't understand, let me know and I'll reverse it.

  3. neumino commented on Nov 10, 2012

    @neumino
    Member

    I'm parsing queries with semicolon. I forgot to consider that JavaScript can use semicolon.

    It should be pretty easy to fix. I'll split queries with ".run();"

  4. coffeemug commented on Nov 13, 2012

    @coffeemug
    Contributor

    @neumino -- should this be closed?

  5. neumino commented on Nov 13, 2012

    @neumino
    Member

    Yes, fixed in ac41a0f
    Closing.

  6. added a commit that references this issue on Jul 24, 2026
  7. added a commit that references this issue on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions