Skip to content

Commit 47aa8a5

Browse files
committed
Update PostGIS dialect to allow creation of 4D geometry columns
1 parent 357f2fd commit 47aa8a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

NHibernate.Spatial.PostGis/Dialect/PostGisDialect.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ private string QuoteSchema(string schema)
477477
/// <param name="column">The column.</param>
478478
/// <param name="srid">The srid.</param>
479479
/// <param name="subtype">The subtype.</param>
480-
/// <param name="dimension">[3DIS] The dimension</param>
480+
/// <param name="dimension">The dimension.</param>
481481
/// <param name="isNullable">Whether or not the column is nullable</param>
482482
/// <returns></returns>
483483
public string GetSpatialCreateString(string schema, string table, string column, int srid, string subtype, int dimension, bool isNullable)
@@ -493,8 +493,7 @@ public string GetSpatialCreateString(string schema, string table, string column,
493493
builder.Append(this.MultipleQueriesSeparator);
494494

495495
builder.AppendFormat("SELECT AddGeometryColumn('{0}','{1}','{2}',{3},'{4}',{5})",
496-
//this.QuoteSchema(schema), this.QuoteForTableName(table), this.QuoteForColumnName(column), srid, subtype, dimension == 3 ? 3 : 2);
497-
schema, table, column, srid, subtype, dimension == 3 ? 3 : 2);
496+
schema, table, column, srid, subtype, dimension);
498497

499498
if (!isNullable)
500499
{

0 commit comments

Comments
 (0)