Skip to content

Select from multiple tables throws "No such table" #777

@JanC

Description

@JanC

Build Information

  • Include the SQLite.swift version, commit or branch experiencing the issue.
    0.11.4
  • Mention Xcode and OS X versions affected.
    Xcode 9.2, iOS 11
  • How do do you integrate SQLite.swift in your project?
    • Carthage

Hi,
I noticed that when selecting all columns from multiple tables, SQLite.swift throws an No such table: exception even if the table does exists and the generated SQL itself works fine

More details are in the SO question

Basically

users.select(users[*], posts[*]).join(posts, on: user_id == users[id])

would throw "No such table: posts"

while this works

users.select(users[*], posts[post_text]).join(posts, on: user_id == users[id])

In both cases, the generated SQL is correct

cheers,
Jan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions