File: test_table_with_oids.patch

package info (click to toggle)
libpg-perl 1%3A2.1.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 228 kB
  • ctags: 36
  • sloc: perl: 514; ansic: 112; makefile: 7; sh: 7
file content (18 lines) | stat: -rw-r--r-- 764 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Create table with OIDs in test
 The test verifies the presence of an OID, but they are not created by default
 any more.
Author: Martin Pitt <mpitt@debian.org>
Forwarded: no
Last-Update: 2014-07-29

--- libpg-perl-2.1.1.orig/test.pl
+++ libpg-perl-2.1.1/test.pl
@@ -148,7 +148,7 @@ my $port = $conn->port;
 ######################### create and insert into table
 
 # we test comments inside string and with no trailing newline here
-$result = $conn->exec("CREATE TABLE person (id int4, -- test\n name char(16)) -- test");
+$result = $conn->exec("CREATE TABLE person (id int4, -- test\n name char(16)) WITH OIDS -- test");
 die $conn->errorMessage unless PGRES_COMMAND_OK eq $result->resultStatus;
 my $cmd = $result->cmdStatus;
 ( $cmd =~ /^CREATE/ )