Skip to content

fragments in select #104

@ruslandoga

Description

@ruslandoga

This query doesn't seem to work with SQLite3

query =
"posts"
|> select([r], fragment("?", r))
|> plan()
assert all(query) == ~s{SELECT p0 FROM "posts" AS p0}

sqlite> create table example(a integer);

sqlite> select e0 from "example" as e0;
Parse error: no such column: e0
  select e0 from "example" as e0;
         ^--- error here

I wonder if there is something we can do about it. Either raise or add .*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions