rdf_pg.ml Postgresql issues.
Created by: arkinjo
In rdf_pg.ml,
line 62:
let quote_str s = "\"" ^ (String.escaped s) ^ "\"";;
-->
let quote_str s = "'" ^ (String.escaped s) ^ "'";;
Single quote (') rather than double quote ("). Or is this really necessary? Even
let quote_str s = String.escaped s;;
may be OK(?)
line 298:
let query = "DELETE FROM "^nstable^" WHERE NAME=?" in
-->
let query = "DELETE FROM "^nstable^" WHERE NAME=$1" in
"?" should be "$1", etc. Similarly,
line 301:
let query = "INSERT INTO "^nstable^" (iri, name) VALUES (?, ?)" in
-->
let query = "INSERT INTO "^nstable^" (iri, name) VALUES ($1, $2)" in
Sorry for the clumsy report. I'm not familiar with bug reporting... Anyway, this is a great library. Thanks a lot!