Skip to content

Commit 65be85b

Browse files
Bump .vendor/linter: tighten comment-stacked-dashes to 2+ lines (#36)
1 parent 2ab8876 commit 65be85b

7 files changed

Lines changed: 21 additions & 22 deletions

File tree

‎sql/object_reference.sql‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1480,8 +1480,10 @@ BEGIN
14801480
RAISE DEBUG 'dropped_objects(): %', r;
14811481
END LOOP;
14821482

1483-
-- Multiple objects might have been affected
1484-
-- Could potentially be done with a writable CTE
1483+
/*
1484+
* Multiple objects might have been affected
1485+
* Could potentially be done with a writable CTE
1486+
*/
14851487
FOR r_object_v IN
14861488
SELECT _object_v.*
14871489
FROM pg_catalog.pg_event_trigger_dropped_objects() d
@@ -1570,20 +1572,14 @@ $$);
15701572

15711573
CREATE EVENT TRIGGER zzz__object_reference_drop
15721574
ON sql_drop
1573-
-- For debugging
1574-
--WHEN tag IN ( 'ALTER TABLE', 'DROP TABLE' )
15751575
EXECUTE PROCEDURE _object_reference._etg_drop()
15761576
;
15771577
CREATE EVENT TRIGGER zzz_object_reference__fix_identity
15781578
ON ddl_command_end
1579-
-- For debugging
1580-
--WHEN tag IN ( 'ALTER TABLE', 'DROP TABLE' )
15811579
EXECUTE PROCEDURE _object_reference._etg_fix_identity()
15821580
;
15831581
CREATE EVENT TRIGGER zzz_object_reference_capture
15841582
ON ddl_command_end
1585-
-- For debugging
1586-
--WHEN tag IN ( 'ALTER TABLE', 'DROP TABLE' )
15871583
EXECUTE PROCEDURE _object_reference._etg_capture()
15881584
;
15891585

‎test/dump/load_all.sql‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ SELECT c.* FROM test_object o, test__create(o) c ORDER BY o.seq ASC;
5252
SELECT c.* FROM test_object o, test__register(o) c ORDER BY o.seq DESC; -- Would be nice to randomize...
5353
SELECT c.* FROM test_object o, test__verify(o) c ORDER BY o.seq ASC;
5454

55-
--SET client_min_messages = DEBUG;
56-
--\i test/pgxntool/finish.sql
57-
5855
CREATE SCHEMA test_capture_support;
5956
SET search_path = test_capture_support, tap, public;
6057

‎test/dump/verify.sql‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ SELECT c.*
5555
;
5656

5757

58-
-- First verify that object group prevents drop
59-
-- (see below too)
58+
/*
59+
* First verify that object group prevents drop
60+
* (see below too)
61+
*/
6062
SELECT c.*
6163
FROM test_capture_support.test_object o
6264
--, test_capture_support.test__drop(o) c
@@ -79,8 +81,10 @@ SELECT lives_ok(
7981
) FROM object_group_ids
8082
;
8183

82-
-- Drop objects for real this time
83-
-- (see above too)
84+
/*
85+
* Drop objects for real this time
86+
* (see above too)
87+
*/
8488
SELECT c.*
8589
FROM test_capture_support.test_object o
8690
, test_capture_support.test__drop(o) c

‎test/helpers/object_table.sql‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ INSERT INTO test_prereq VALUES
143143
, ($$CREATE FUNCTION "test type out"("test type") RETURNS cstring LANGUAGE 'internal' IMMUTABLE AS 'int2in'$$)
144144
;
145145

146-
-- \N is null character
147-
-- sql-lint:disable-block prefer-short-type: COPY payload data, not real type references
146+
/*
147+
* \N is null character
148+
* sql-lint:disable-block prefer-short-type: COPY payload data, not real type references
149+
*/
148150
COPY test_object(object_type, object_name, secondary, create_command, drop_command) FROM STDIN (DELIMITER '|');
149151
table|test table||%("test column" int)|
150152
index|test table test index||%ON "test table"("test column")|

‎test/sql/capture.sql‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ SELECT is_empty(
9696
-- Create
9797
SELECT c.* FROM test_object o, test__create(o) c ORDER BY o.seq ASC;
9898

99-
-- Manually register an object; make certain it does not show up in group
100-
-- NOTE! Other tests depend on this working!
99+
/*
100+
* Manually register an object; make certain it does not show up in group
101+
* NOTE! Other tests depend on this working!
102+
*/
101103
SELECT lives_ok(
102104
$$CREATE TEMP TABLE ogi__object_id AS
103105
SELECT object_reference.object__getsert('table', 'object_group_ids', NULL) AS object_id

‎test/sql/event_trigger.sql‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ SELECT is(
6767
, 'Exactly 1 test view record'
6868
);
6969

70-
-- s/column_test/column_filler/g
71-
-- Change 1 to 2 in getsert
7270
SELECT lives_ok(
7371
$$CREATE TEMP TABLE column_filler AS SELECT * FROM _object_reference._object_v__for_update('table column', 'table_under_test'::regclass, 2)$$
7472
, $$CREATE TEMP TABLE column_filler AS SELECT * FROM _object_reference._object_v__for_update('table column', 'table_under_test'::regclass, 2)$$

0 commit comments

Comments
 (0)