mirror of https://github.com/apache/openjpa.git
OPENJPA-308
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@563355 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dd1ea27032
commit
d5ef5d1f3d
|
@ -23,6 +23,7 @@ import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
|
import java.sql.Types;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
@ -230,6 +231,15 @@ public class PostgresDictionary
|
||||||
stmnt.setBoolean(idx, val);
|
stmnt.setBoolean(idx, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setNull(PreparedStatement stmnt, int idx, int colType,
|
||||||
|
Column col)
|
||||||
|
throws SQLException {
|
||||||
|
// OPENJPA-
|
||||||
|
if (colType == Types.BLOB)
|
||||||
|
colType = Types.BINARY;
|
||||||
|
stmnt.setNull(idx, colType);
|
||||||
|
}
|
||||||
|
|
||||||
protected void appendSelectRange(SQLBuffer buf, long start, long end) {
|
protected void appendSelectRange(SQLBuffer buf, long start, long end) {
|
||||||
if (end != Long.MAX_VALUE)
|
if (end != Long.MAX_VALUE)
|
||||||
buf.append(" LIMIT ").appendValue(end - start);
|
buf.append(" LIMIT ").appendValue(end - start);
|
||||||
|
|
Loading…
Reference in New Issue