Revision 24 trunk/org.gvsig.postgresql/org.gvsig.postgresql.provider/src/main/java/org/gvsig/fmap/dal/store/postgresql/PostgreSQLHelper.java
PostgreSQLHelper.java | ||
---|---|---|
720 | 720 |
List<String> sqls = new ArrayList<String>(); |
721 | 721 |
|
722 | 722 |
StringBuilder strb = new StringBuilder(); |
723 |
strb.append("SELECT AddGeometryColumn('"); |
|
723 |
strb.append("SELECT ST_AddGeometryColumn('");
|
|
724 | 724 |
if (schema != null && schema.length() > 0) { |
725 | 725 |
strb.append(schema); |
726 | 726 |
strb.append("', '"); |
... | ... | |
770 | 770 |
|
771 | 771 |
public String getSqlFieldName(FeatureAttributeDescriptor attribute) { |
772 | 772 |
if (attribute.getType() == DataTypes.GEOMETRY) { |
773 |
return "asBinary(" + super.getSqlFieldName(attribute) + ")";
|
|
773 |
return "ST_AsBinary(" + super.getSqlFieldName(attribute) + ")";
|
|
774 | 774 |
} |
775 | 775 |
return super.getSqlFieldName(attribute); |
776 | 776 |
} |
Also available in: Unified diff