Skip to content

Commit 6d6f8f2

Browse files
committed
Improved handling of -safe-string option
1 parent b9788fa commit 6d6f8f2

10 files changed

+30
-23
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2014-10-23: Fixed string handling for new OCaml version 4.02 (String/Bytes
2+
modules). Requires new findlib version (>= 1.5).
3+
14
2014-08-14: Even more new asynchronous methods:
25

36
* optional [startonly] flag for creating an asynchronous connection

INSTALL.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(* OASIS_START *)
2-
(* DO NOT EDIT (digest: c9cde8d1d7a6bc1ed6236ec912d83768) *)
2+
(* DO NOT EDIT (digest: e89ae2ea2704a024c7441389a203faa8) *)
33

44
This is the INSTALL file for the postgresql-ocaml distribution.
55

@@ -12,7 +12,8 @@ Dependencies
1212
In order to compile this package, you will need:
1313

1414
* ocaml (>= 3.12) for all, doc API
15-
* findlib (>= 1.3.1)
15+
* findlib (>= 1.5)
16+
* bytes for library postgresql
1617
* lablgtk2 for executable prompt_gtk
1718

1819
Installing

_oasis

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
OASISFormat: 0.4
22
Name: postgresql-ocaml
3-
Version: 2.1.0
3+
Version: 2.1.1
44
Synopsis: postgresql-ocaml - bindings to the PostgreSQL library
55
Description: postgresql-ocaml offers library functions for accessing PostgreSQL databases
66
Authors: Alain Frisch <alain.frisch@lexifi.com>,
@@ -14,7 +14,7 @@ Maintainers: Markus Mottl <markus.mottl@gmail.com>,
1414
LicenseFile: COPYING.txt
1515
License: LGPL-2.1+ with OCaml linking exception
1616
OCamlVersion: >= 3.12
17-
FindlibVersion: >= 1.3.1
17+
FindlibVersion: >= 1.5
1818
Homepage: http://mmottl.github.io/postgresql-ocaml
1919
#Categories:
2020
#FilesAB:
@@ -37,7 +37,7 @@ Library postgresql
3737
if flag(strict) && ccomp_type(cc)
3838
CCOpt+: -Wall -pedantic -Wextra -Wunused -Wno-long-long
3939
CCLib: -lpq
40-
BuildDepends: threads, bigarray
40+
BuildDepends: threads, bigarray, bytes
4141

4242

4343
# Examples

_tags

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: d32380a8a5d9af5342a2f383d8fb4575)
2+
# DO NOT EDIT (digest: 843c6fb516c1ba86d98cfc39f6e78629)
33
# Ignore VCS directories, you can use the same kind of rule outside
44
# OASIS_START/STOP if you want to exclude directories that contains
55
# useless stuff for the build process
@@ -24,40 +24,50 @@
2424
"lib/dllpostgresql_stubs.so": oasis_library_postgresql_cclib
2525
<lib/postgresql.{cma,cmxa}>: use_libpostgresql_stubs
2626
<lib/*.ml{,i}>: pkg_bigarray
27+
<lib/*.ml{,i}>: pkg_bytes
2728
<lib/*.ml{,i}>: pkg_threads
2829
"lib/postgresql_stubs.c": pkg_bigarray
30+
"lib/postgresql_stubs.c": pkg_bytes
2931
"lib/postgresql_stubs.c": pkg_threads
3032
# Executable async
3133
<examples/async.{native,byte}>: pkg_bigarray
34+
<examples/async.{native,byte}>: pkg_bytes
3235
<examples/async.{native,byte}>: pkg_threads
3336
<examples/async.{native,byte}>: use_postgresql
3437
# Executable cursor
3538
<examples/cursor.{native,byte}>: pkg_bigarray
39+
<examples/cursor.{native,byte}>: pkg_bytes
3640
<examples/cursor.{native,byte}>: pkg_threads
3741
<examples/cursor.{native,byte}>: use_postgresql
3842
# Executable dump
3943
<examples/dump.{native,byte}>: pkg_bigarray
44+
<examples/dump.{native,byte}>: pkg_bytes
4045
<examples/dump.{native,byte}>: pkg_threads
4146
<examples/dump.{native,byte}>: use_postgresql
4247
# Executable populate
4348
<examples/populate.{native,byte}>: pkg_bigarray
49+
<examples/populate.{native,byte}>: pkg_bytes
4450
<examples/populate.{native,byte}>: pkg_threads
4551
<examples/populate.{native,byte}>: use_postgresql
4652
# Executable prompt
4753
<examples/prompt.{native,byte}>: pkg_bigarray
54+
<examples/prompt.{native,byte}>: pkg_bytes
4855
<examples/prompt.{native,byte}>: pkg_threads
4956
<examples/prompt.{native,byte}>: use_postgresql
5057
# Executable prompt_gtk
5158
<examples/prompt_gtk.{native,byte}>: pkg_bigarray
59+
<examples/prompt_gtk.{native,byte}>: pkg_bytes
5260
<examples/prompt_gtk.{native,byte}>: pkg_lablgtk2
5361
<examples/prompt_gtk.{native,byte}>: pkg_threads
5462
<examples/prompt_gtk.{native,byte}>: use_postgresql
5563
<examples/*.ml{,i}>: pkg_lablgtk2
5664
# Executable test_lo
5765
<examples/test_lo.{native,byte}>: pkg_bigarray
66+
<examples/test_lo.{native,byte}>: pkg_bytes
5867
<examples/test_lo.{native,byte}>: pkg_threads
5968
<examples/test_lo.{native,byte}>: use_postgresql
6069
<examples/*.ml{,i}>: pkg_bigarray
70+
<examples/*.ml{,i}>: pkg_bytes
6171
<examples/*.ml{,i}>: pkg_threads
6272
<examples/*.ml{,i}>: use_postgresql
6373
# OASIS_STOP

lib/META

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# OASIS_START
2-
# DO NOT EDIT (digest: 89a9f5cb543b3603a4c9a0212e24c63f)
3-
version = "2.1.0"
2+
# DO NOT EDIT (digest: 96ce45a2fe6b0b524fc6731126b5f129)
3+
version = "2.1.1"
44
description = "postgresql-ocaml - bindings to the PostgreSQL library"
5-
requires = "threads bigarray"
5+
requires = "threads bigarray bytes"
66
archive(byte) = "postgresql.cma"
77
archive(byte, plugin) = "postgresql.cma"
88
archive(native) = "postgresql.cmxa"

lib/postgresql.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2525
*)
2626

27-
open Postgresql_compat
28-
2927
(** Client-interface to the PostgreSQL database. *)
3028

3129
(** Please learn about more details in the database documentation! *)

lib/postgresql_compat.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
module Bytes = Bytes
2-
31
let buffer_add_subbytes = Buffer.add_subbytes

lib/postgresql_compat312.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
module Bytes = String
2-
31
let buffer_add_subbytes = Buffer.add_substring

lib/postgresql_compat402.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
module Bytes = Bytes
2-
31
let buffer_add_subbytes = Buffer.add_subbytes

setup.ml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(* setup.ml generated for the first time by OASIS v0.3.0 *)
22

33
(* OASIS_START *)
4-
(* DO NOT EDIT (digest: 5a2c9fbb351fb3cffecc7b7cc1be5a8f) *)
4+
(* DO NOT EDIT (digest: 067e12b9c3da0df8c7a27c34a0b12394) *)
55
(*
66
Regenerated by OASIS v0.4.4
77
Visit http://oasis.forge.ocamlcore.org for more information and
@@ -6644,11 +6644,11 @@ let setup_t =
66446644
{
66456645
oasis_version = "0.4";
66466646
ocaml_version = Some (OASISVersion.VGreaterEqual "3.12");
6647-
findlib_version = Some (OASISVersion.VGreaterEqual "1.3.1");
6647+
findlib_version = Some (OASISVersion.VGreaterEqual "1.5");
66486648
alpha_features = [];
66496649
beta_features = [];
66506650
name = "postgresql-ocaml";
6651-
version = "2.1.0";
6651+
version = "2.1.1";
66526652
license =
66536653
OASISLicense.DEP5License
66546654
(OASISLicense.DEP5Unit
@@ -6744,7 +6744,8 @@ let setup_t =
67446744
bs_build_depends =
67456745
[
67466746
FindlibPackage ("threads", None);
6747-
FindlibPackage ("bigarray", None)
6747+
FindlibPackage ("bigarray", None);
6748+
FindlibPackage ("bytes", None)
67486749
];
67496750
bs_build_tools =
67506751
[ExternalTool "ocamldoc"; ExternalTool "ocamlbuild"];
@@ -7065,15 +7066,15 @@ let setup_t =
70657066
};
70667067
oasis_fn = Some "_oasis";
70677068
oasis_version = "0.4.4";
7068-
oasis_digest = Some "£\1508ý9ã;Í»þ\031?~\012\007\146";
7069+
oasis_digest = Some "\001áT£e«\148\"ýØKóH¶uv";
70697070
oasis_exec = None;
70707071
oasis_setup_args = [];
70717072
setup_update = false
70727073
};;
70737074

70747075
let setup () = BaseSetup.setup setup_t;;
70757076

7076-
# 7077 "setup.ml"
7077+
# 7078 "setup.ml"
70777078
(* OASIS_STOP *)
70787079

70797080
let () =

0 commit comments

Comments
 (0)