Permalink
Browse files

fix callproc escape documentation the specification\ (#785)

specifies {? there was a space between { ?\
fixes #767
  • Loading branch information...
davecramer committed Mar 19, 2017
1 parent 3f2a02e commit 95a3f41d6c0debbc6658312c484c6709e3da2225
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/documentation/head/callproc.md
@@ -22,7 +22,7 @@ This example shows how to call a PostgreSQL™ built in function, `upper`, which
simply converts the supplied string argument to uppercase.
```java
CallableStatement upperProc = conn.prepareCall("{ ? = call upper( ? ) }");
CallableStatement upperProc = conn.prepareCall("{? = call upper( ? ) }");
upperProc.registerOutParameter(1, Types.VARCHAR);
upperProc.setString(2, "lowercase to uppercase");
upperProc.execute();
@@ -95,7 +95,7 @@ stmt.close();
conn.setAutoCommit(false);
// Procedure call.
CallableStatement proc = conn.prepareCall("{ ? = call refcursorfunc() }");
CallableStatement proc = conn.prepareCall("{? = call refcursorfunc() }");
proc.registerOutParameter(1, Types.OTHER);
proc.execute();
ResultSet results = (ResultSet) proc.getObject(1);
@@ -116,7 +116,7 @@ you are free to directly use cursor commands on it, such as `FETCH` and `MOVE`.
```java
conn.setAutoCommit(false);
CallableStatement proc = conn.prepareCall("{ ? = call refcursorfunc() }");
CallableStatement proc = conn.prepareCall("{? = call refcursorfunc() }");
proc.registerOutParameter(1, Types.OTHER);
proc.execute();
String cursorName = proc.getString(1);

0 comments on commit 95a3f41

Please sign in to comment.