Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 1649afb

Browse files
committed
Merge branch 'master' of github.com:ServiceStack/ServiceStack.OrmLite
2 parents f5a969a + b58f729 commit 1649afb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ServiceStack.OrmLite.PostgreSQL.Tests/OrmLiteInsertTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ public void Can_retrieve_LastInsertId_from_inserted_table()
113113
var row2 = new ModelWithIdAndName1() { Name = "B", Id = 5 };
114114

115115
var row1LastInsertId = db.Insert(row1, selectIdentity: true);
116-
Assert.That(db.GetLastSql(), Is.StringEnding(") RETURNING id"));
116+
Assert.That(db.GetLastSql(), Is.StringMatching("\\) RETURNING \"?id"));
117117

118118
var row2LastInsertId = db.Insert(row2, selectIdentity: true);
119-
Assert.That(db.GetLastSql(), Is.StringEnding(") RETURNING id"));
119+
Assert.That(db.GetLastSql(), Is.StringMatching("\\) RETURNING \"?id"));
120120

121121
var insertedRow1 = db.SingleById<ModelWithIdAndName1>(row1LastInsertId);
122122
var insertedRow2 = db.SingleById<ModelWithIdAndName1>(row2LastInsertId);

src/ServiceStack.OrmLite.SqlServer.Converters/SqlServerHierarchyIdTypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public SqlServerHierarchyIdTypeConverter() : base()
1616

1717
public override string ColumnDefinition
1818
{
19-
get { return "HIERARCHYID"; }
19+
get { return "hierarchyid"; }
2020
}
2121

2222
public override DbType DbType

0 commit comments

Comments
 (0)