Skip to content

Commit

Permalink
Fix some t_ppx_sqlexpr build issues (does not build yet though).
Browse files Browse the repository at this point in the history
  • Loading branch information
mfp committed Dec 1, 2015
1 parent 41f8f60 commit 4634364
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/t_ppx_sqlexpr.ml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@

open Printf
open OUnit
open Lwt

let (>>=) = Lwt.bind

let aeq_int = assert_equal ~printer:(sprintf "%d")
let aeq_str = assert_equal ~printer:(sprintf "%S")
Expand All @@ -30,6 +27,7 @@ struct
module S = Sqlexpr

let (>|=) f g = bind f (fun x -> return (g x))
let (>>=) = Lwt.bind

(* schema changes to :memory: db made by a Sqlexpr_sqlite_lwt worker are not
* seen by the others, so allow to use a file by doing ~in_mem:false *)
Expand Down Expand Up @@ -70,7 +68,7 @@ struct

let insert_s db l =
S.execute db [%sql "CREATE TABLE foo(id INTEGER PRIMARY KEY, v TEXT)"] >>= fun () ->
iter (S.execute db [sql "INSERT INTO foo(v) VALUES(%s)"]) l
iter (S.execute db [%sql "INSERT INTO foo(v) VALUES(%s)"]) l

This comment has been minimized.

Copy link
@j0sh

j0sh Dec 1, 2015

Contributor

D'oh. Thanks for catching this.


let insert_S db l =
S.execute db [%sql "CREATE TABLE foo(id INTEGER PRIMARY KEY, v BLOB)"] >>= fun () ->
Expand Down

0 comments on commit 4634364

Please sign in to comment.