File: fetchsize32

package info (click to toggle)
postgresql-mysql-fdw 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,272 kB
  • sloc: ansic: 5,926; sql: 1,987; sh: 84; makefile: 42
file content (37 lines) | stat: -rw-r--r-- 2,005 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- a/sql/server_options.sql
+++ b/sql/server_options.sql
@@ -164,9 +164,11 @@ SELECT count(*)
   AND srvoptions @> array['fetch_size=202'];
 
 -- Negative test cases for fetch_size option, should error out.
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '-60000');
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '123abc');
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '999999999999999999999');
+-- Debian: error message varies on 32-bit, disable here since upstream is unwilling to fix it
+--         https://github.com/EnterpriseDB/mysql_fdw/pull/227
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '-60000');
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '123abc');
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '999999999999999999999');
 
 -- Cleanup fetch_size test objects.
 DROP FOREIGN TABLE  table30000;
--- a/expected/server_options.out
+++ b/expected/server_options.out
@@ -231,12 +231,11 @@ SELECT count(*)
 (1 row)
 
 -- Negative test cases for fetch_size option, should error out.
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '-60000');
-ERROR:  "fetch_size" requires an integer value between 1 to 18446744073709551615
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '123abc');
-ERROR:  "fetch_size" requires an integer value between 1 to 18446744073709551615
-ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '999999999999999999999');
-ERROR:  "fetch_size" requires an integer value between 1 to 18446744073709551615
+-- Debian: error message varies on 32-bit, disable here since upstream is unwilling to fix it
+--         https://github.com/EnterpriseDB/mysql_fdw/pull/227
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '-60000');
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '123abc');
+--ALTER FOREIGN TABLE table30000 OPTIONS ( SET fetch_size '999999999999999999999');
 -- Cleanup fetch_size test objects.
 DROP FOREIGN TABLE  table30000;
 DROP SERVER fetch101;