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

Commit 4b85c65

Browse files
committed
Fix table and column names.
1 parent ce791e7 commit 4b85c65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ public void CanInsertAndSelectByteArray__Insert_insert__manual_select()
111111
private static void _selectAndVerifyManually(TypeWithByteArrayField orig, System.Data.IDbConnection db)
112112
{
113113
using(var cmd = db.CreateCommand()) {
114-
cmd.CommandText = @"select ""Content"" from ""TypeWithByteArrayField"" where ""Id"" = 1 --manual select";
114+
cmd.CommandText = @"select ""content"" from ""type_with_byte_array_field"" where ""id"" = 1 --manual select";
115115
using(var reader = cmd.ExecuteReader()) {
116116
reader.Read();
117-
var ba = reader["Content"] as byte[];
117+
var ba = reader["content"] as byte[];
118118
Assert.AreEqual(orig.Content.Length, ba.Length);
119119
Assert.AreEqual(orig.Content, ba);
120120
}
@@ -124,7 +124,7 @@ private static void _selectAndVerifyManually(TypeWithByteArrayField orig, System
124124
private static void _insertManually(TypeWithByteArrayField orig, System.Data.IDbConnection db)
125125
{
126126
using(var cmd = db.CreateCommand()) {
127-
cmd.CommandText = @"INSERT INTO ""TypeWithByteArrayField"" (""Id"",""Content"") VALUES (@Id, @Content) --manual parameterized insert";
127+
cmd.CommandText = @"INSERT INTO ""type_with_byte_array_field"" (""id"",""content"") VALUES (@Id, @Content) --manual parameterized insert";
128128

129129
var p_id = cmd.CreateParameter();
130130
p_id.ParameterName = "@Id";

0 commit comments

Comments
 (0)