8000 Test pulling oids from a select · mst-appear/postgresql-async@0f556e8 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 0f556e8

Browse files
committed
Test pulling oids from a select
1 parent 614de4e commit 0f556e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

postgresql-async/src/test/scala/com/github/mauricio/async/db/postgresql/PostgreSQLConnectionSpec.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PostgreSQLConnectionSpec extends Specification with DatabaseTestHelper {
5353
time_column time,
5454
boolean_column boolean,
5555
constraint bigserial_column_pkey primary key (bigserial_column)
56-
)"""
56+
) with oids"""
5757

5858
val insert = """insert into type_test_table (
5959
smallint_column,
@@ -83,7 +83,7 @@ class PostgreSQLConnectionSpec extends Specification with DatabaseTestHelper {
8383
)
8484
"""
8585

86-
val select = "select * from type_test_table"
86+
val select = "select *, oid from type_test_table"
8787

8888
val preparedStatementCreate = """create temp table prepared_statement_test (
8989
id bigserial not null,
@@ -151,6 +151,8 @@ class PostgreSQLConnectionSpec extends Specification with DatabaseTestHelper {
151151
row(10) === DateEncoderDecoder.decode("1984-08-06")
152152
row(11) === TimeEncoderDecoder.Instance.decode("22:13:45.888888")
153153
row(12) === true
154+
row(13) must beAnInstanceOf[java.lang.Long]
155+
row(13).asInstanceOf[Long] must beGreaterThan(0L)
154156

155157

156158
}

0 commit comments

Comments
 (0)
0