This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ServiceStack.OrmLite.PostgreSQL.Tests
ServiceStack.OrmLite.SqlServer.Converters Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,10 @@ public void Can_retrieve_LastInsertId_from_inserted_table()
113
113
var row2 = new ModelWithIdAndName1 ( ) { Name = "B" , Id = 5 } ;
114
114
115
115
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") ) ;
117
117
118
118
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") ) ;
120
120
121
121
var insertedRow1 = db . SingleById < ModelWithIdAndName1 > ( row1LastInsertId ) ;
122
122
var insertedRow2 = db . SingleById < ModelWithIdAndName1 > ( row2LastInsertId ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public SqlServerHierarchyIdTypeConverter() : base()
16
16
17
17
public override string ColumnDefinition
18
18
{
19
- get { return "HIERARCHYID " ; }
19
+ get { return "hierarchyid " ; }
20
20
}
21
21
22
22
public override DbType DbType
You can’t perform that action at this time.
0 commit comments