01: /*
02: * Copyright Aduna (http://www.aduna-software.com/) (c) 2008.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.sail.rdbms.postgresql.alt;
07:
08: import java.sql.Types;
09:
10: import org.openrdf.sail.rdbms.schema.ValueTable;
11:
12: /**
13: * Optimises prepared insert statements for PostgreSQL and overrides the DOUBLE
14: * column type.
15: *
16: * @author James Leigh
17: *
18: */
19: public class PgSqlValueTable extends ValueTable {
20:
21: @Override
22: public String sql(int type, int length) {
23: switch (type) {
24: case Types.DOUBLE:
25: return "double precision";
26: default:
27: return super.sql(type, length);
28: }
29: }
30:
31: }
|