@@ -2050,25 +2050,25 @@ RETURNS NAME[] AS $$
20502050 SELECT * FROM _keys($1, $2) LIMIT 1;
20512051$$ LANGUAGE sql;
20522052
2053- -- col_is_pk( schema, table, column [], description )
2053+ -- col_is_pk( schema, table, columns [], description )
20542054CREATE OR REPLACE FUNCTION col_is_pk ( NAME, NAME, NAME[], TEXT )
20552055RETURNS TEXT AS $$
20562056 SELECT is( _ckeys( $1, $2, 'p' ), $3, $4 );
20572057$$ LANGUAGE sql;
20582058
2059- -- col_is_pk( schema, table, column [] )
2059+ -- col_is_pk( schema, table, columns [] )
20602060CREATE OR REPLACE FUNCTION col_is_pk ( NAME, NAME, NAME[] )
20612061RETURNS TEXT AS $$
20622062 SELECT col_is_pk( $1, $2, $3, 'Columns ' || quote_ident($1) || '.' || quote_ident($2) || '(' || _ident_array_to_string($3, ', ') || ') should be a primary key' );
20632063$$ LANGUAGE sql;
20642064
2065- -- col_is_pk( table, column [], description )
2065+ -- col_is_pk( table, columns [], description )
20662066CREATE OR REPLACE FUNCTION col_is_pk ( NAME, NAME[], TEXT )
20672067RETURNS TEXT AS $$
20682068 SELECT is( _ckeys( $1, 'p' ), $2, $3 );
20692069$$ LANGUAGE sql;
20702070
2071- -- col_is_pk( table, column [] )
2071+ -- col_is_pk( table, columns [] )
20722072CREATE OR REPLACE FUNCTION col_is_pk ( NAME, NAME[] )
20732073RETURNS TEXT AS $$
20742074 SELECT col_is_pk( $1, $2, 'Columns ' || quote_ident($1) || '(' || _ident_array_to_string($2, ', ') || ') should be a primary key' );
@@ -2098,25 +2098,25 @@ RETURNS TEXT AS $$
20982098 SELECT col_is_pk( $1, $2, 'Column ' || quote_ident($1) || '(' || quote_ident($2) || ') should be a primary key' );
20992099$$ LANGUAGE sql;
21002100
2101- -- col_isnt_pk( schema, table, column [], description )
2101+ -- col_isnt_pk( schema, table, columns [], description )
21022102CREATE OR REPLACE FUNCTION col_isnt_pk ( NAME, NAME, NAME[], TEXT )
21032103RETURNS TEXT AS $$
21042104 SELECT isnt( _ckeys( $1, $2, 'p' ), $3, $4 );
21052105$$ LANGUAGE sql;
21062106
2107- -- col_isnt_pk( schema, table, column [] )
2107+ -- col_isnt_pk( schema, table, columns [] )
21082108CREATE OR REPLACE FUNCTION col_isnt_pk ( NAME, NAME, NAME[] )
21092109RETURNS TEXT AS $$
21102110 SELECT col_isnt_pk( $1, $2, $3, 'Columns ' || quote_ident($1) || '.' || quote_ident($2) || '(' || _ident_array_to_string($3, ', ') || ') should not be a primary key' );
21112111$$ LANGUAGE sql;
21122112
2113- -- col_isnt_pk( table, column [], description )
2113+ -- col_isnt_pk( table, columns [], description )
21142114CREATE OR REPLACE FUNCTION col_isnt_pk ( NAME, NAME[], TEXT )
21152115RETURNS TEXT AS $$
21162116 SELECT isnt( _ckeys( $1, 'p' ), $2, $3 );
21172117$$ LANGUAGE sql;
21182118
2119- -- col_isnt_pk( table, column [] )
2119+ -- col_isnt_pk( table, columns [] )
21202120CREATE OR REPLACE FUNCTION col_isnt_pk ( NAME, NAME[] )
21212121RETURNS TEXT AS $$
21222122 SELECT col_isnt_pk( $1, $2, 'Columns ' || quote_ident($1) || '(' || _ident_array_to_string($2, ', ') || ') should not be a primary key' );
@@ -2204,7 +2204,7 @@ RETURNS BOOLEAN AS $$
22042204 );
22052205$$ LANGUAGE SQL;
22062206
2207- -- col_is_fk( schema, table, column [], description )
2207+ -- col_is_fk( schema, table, columns [], description )
22082208CREATE OR REPLACE FUNCTION col_is_fk ( NAME, NAME, NAME[], TEXT )
22092209RETURNS TEXT AS $$
22102210DECLARE
@@ -2237,13 +2237,13 @@ BEGIN
22372237END;
22382238$$ LANGUAGE plpgsql;
22392239
2240- -- col_is_fk( schema, table, column [] )
2240+ -- col_is_fk( schema, table, columns [] )
22412241CREATE OR REPLACE FUNCTION col_is_fk ( NAME, NAME, NAME[] )
22422242RETURNS TEXT AS $$
22432243 SELECT col_is_fk( $1, $2, $3, 'Columns ' || quote_ident($1) || '.' || quote_ident($2) || '(' || _ident_array_to_string($3, ', ') || ') should be a foreign key' );
22442244$$ LANGUAGE sql;
22452245
2246- -- col_is_fk( table, column [], description )
2246+ -- col_is_fk( table, columns [], description )
22472247CREATE OR REPLACE FUNCTION col_is_fk ( NAME, NAME[], TEXT )
22482248RETURNS TEXT AS $$
22492249DECLARE
@@ -2275,7 +2275,7 @@ BEGIN
22752275END;
22762276$$ LANGUAGE plpgsql;
22772277
2278- -- col_is_fk( table, column [] )
2278+ -- col_is_fk( table, columns [] )
22792279CREATE OR REPLACE FUNCTION col_is_fk ( NAME, NAME[] )
22802280RETURNS TEXT AS $$
22812281 SELECT col_is_fk( $1, $2, 'Columns ' || quote_ident($1) || '(' || _ident_array_to_string($2, ', ') || ') should be a foreign key' );
@@ -2305,25 +2305,25 @@ RETURNS TEXT AS $$
23052305 SELECT col_is_fk( $1, $2, 'Column ' || quote_ident($1) || '(' || quote_ident($2) || ') should be a foreign key' );
23062306$$ LANGUAGE sql;
23072307
2308- -- col_isnt_fk( schema, table, column [], description )
2308+ -- col_isnt_fk( schema, table, columns [], description )
23092309CREATE OR REPLACE FUNCTION col_isnt_fk ( NAME, NAME, NAME[], TEXT )
23102310RETURNS TEXT AS $$
23112311 SELECT ok( NOT _fkexists( $1, $2, $3 ), $4 );
23122312$$ LANGUAGE SQL;
23132313
2314- -- col_isnt_fk( schema, table, column [] )
2314+ -- col_isnt_fk( schema, table, columns [] )
23152315CREATE OR REPLACE FUNCTION col_isnt_fk ( NAME, NAME, NAME[] )
23162316RETURNS TEXT AS $$
23172317 SELECT col_isnt_fk( $1, $2, $3, 'Columns ' || quote_ident($1) || '.' || quote_ident($2) || '(' || _ident_array_to_string($3, ', ') || ') should not be a foreign key' );
23182318$$ LANGUAGE sql;
23192319
2320- -- col_isnt_fk( table, column [], description )
2320+ -- col_isnt_fk( table, columns [], description )
23212321CREATE OR REPLACE FUNCTION col_isnt_fk ( NAME, NAME[], TEXT )
23222322RETURNS TEXT AS $$
23232323 SELECT ok( NOT _fkexists( $1, $2 ), $3 );
23242324$$ LANGUAGE SQL;
23252325
2326- -- col_isnt_fk( table, column [] )
2326+ -- col_isnt_fk( table, columns [] )
23272327CREATE OR REPLACE FUNCTION col_isnt_fk ( NAME, NAME[] )
23282328RETURNS TEXT AS $$
23292329 SELECT col_isnt_fk( $1, $2, 'Columns ' || quote_ident($1) || '(' || _ident_array_to_string($2, ', ') || ') should not be a foreign key' );
@@ -2419,25 +2419,25 @@ BEGIN
24192419END;
24202420$$ LANGUAGE plpgsql;
24212421
2422- -- col_is_unique( schema, table, column [], description )
2422+ -- col_is_unique( schema, table, columns [], description )
24232423CREATE OR REPLACE FUNCTION col_is_unique ( NAME, NAME, NAME[], TEXT )
24242424RETURNS TEXT AS $$
24252425 SELECT _constraint( $1, $2, 'u', $3, $4, 'unique' );
24262426$$ LANGUAGE sql;
24272427
2428- -- col_is_unique( schema, table, column [] )
2428+ -- col_is_unique( schema, table, columns [] )
24292429CREATE OR REPLACE FUNCTION col_is_unique ( NAME, NAME, NAME[] )
24302430RETURNS TEXT AS $$
24312431 SELECT col_is_unique( $1, $2, $3, 'Columns ' || quote_ident($2) || '(' || _ident_array_to_string($3, ', ') || ') should have a unique constraint' );
24322432$$ LANGUAGE sql;
24332433
2434- -- col_is_unique( table, column [], description )
2434+ -- col_is_unique( table, columns [], description )
24352435CREATE OR REPLACE FUNCTION col_is_unique ( NAME, NAME[], TEXT )
24362436RETURNS TEXT AS $$
24372437 SELECT _constraint( $1, 'u', $2, $3, 'unique' );
24382438$$ LANGUAGE sql;
24392439
2440- -- col_is_unique( table, column [] )
2440+ -- col_is_unique( table, columns [] )
24412441CREATE OR REPLACE FUNCTION col_is_unique ( NAME, NAME[] )
24422442RETURNS TEXT AS $$
24432443 SELECT col_is_unique( $1, $2, 'Columns ' || quote_ident($1) || '(' || _ident_array_to_string($2, ', ') || ') should have a unique constraint' );
0 commit comments