git.iko.soy/rowtype-yoga/purescript-yoga-postgres
on v0.3.0 help sign in
29 lines 690 B history raw
1-- EXPECT: Unclosed string literal
2module Test.CompileFail.UnclosedStringLiteralJoin where
4import Prelude
5import Data.Maybe (Maybe(..))
6import Type.Function (type (#))
7import Type.Proxy (Proxy(..))
8import Yoga.Postgres.Schema
10type UsersTable = Table "users"
11 ( id :: Int # PrimaryKey # AutoIncrement
12 , name :: String
13 , email :: String # Unique
14 , age :: Maybe Int
15 )
17type PostsTable = Table "posts"
18 ( id :: Int # PrimaryKey # AutoIncrement
19 , user_id :: Int
20 , title :: String
21 )
23usersTable :: Proxy UsersTable
24usersTable = Proxy
26postsTable :: Proxy PostsTable
27postsTable = Proxy
29bad = from usersTable # select @"users.name" # innerJoin @"users.id = 'unclosed" postsTable