Skip to content

Commit

Permalink
Fix typos in SQL comments
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Feb 27, 2024
1 parent 6310b0d commit 98c0a06
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion sql/04-tokens.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Creates a password reset token for the specified nickname. The user must be
active. The return value is a two-element array. The first value is the token,
and the second the email address of the user. The token will be set to expire
1 day from creation. Returns `NULL` if the token cannot be created (because no
user exists for the specified nickname or the user is not ative).
user exists for the specified nickname or the user is not active).
*/
DECLARE
Expand Down
6 changes: 3 additions & 3 deletions sql/08-ownership.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CREATE OR REPLACE FUNCTION grant_coownership(
t
Grants co-ownership to one or more extensions. The first argument is the
nickname of the uesr inserting the co-owner. Said user must either be and
nickname of the user inserting the co-owner. Said user must either be and
admin or own *all* of the specified extensions. The second argument is the
nickname of the user being granted co-ownership. This name must not be the
same name as the owner. The third argument is an array of the names of the
Expand Down Expand Up @@ -109,11 +109,11 @@ CREATE OR REPLACE FUNCTION transfer_ownership(
t
Transfer ownership of the specified extensions to a new owner. The first
argument is the nickname of the uesr performing the transfer. Said user must
argument is the nickname of the user performing the transfer. Said user must
either be and admin or own *all* of the specified extensions. The second
argument is the nickname of the user being given ownership. This name must not
be the same name as the owner. The third argument is an array of the names of
the extensions to which ownership is to be transfered.
the extensions to which ownership is to be transferred.
*/
BEGIN
Expand Down
6 changes: 3 additions & 3 deletions sql/09-mirrors.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ CREATE OR REPLACE FUNCTION insert_mirror(
Inserts a mirror. The user specified as the first parameter must be an
administrator or else an exception will be thrown. All arguments are required
except `rsync` and `notes`. Returns true on succesful insert and false on
except `rsync` and `notes`. Returns true on successful insert and false on
failure (probably impossible, normally an exception will be thrown on
failure).
Expand Down Expand Up @@ -129,7 +129,7 @@ CREATE OR REPLACE FUNCTION update_mirror(
) RETURNS BOOLEAN LANGUAGE plpgsql SECURITY DEFINER AS $$
/*
% SELECT udpate_mirror(
% SELECT update_mirror(
admin := 'theory',
old_uri := 'https://kineticode.com/pgxn/',
uri := 'https://pgxn.kineticode.com/',
Expand All @@ -151,7 +151,7 @@ CREATE OR REPLACE FUNCTION update_mirror(
Updates a mirror. The user specified as the first parameter must be an
administrator or else an exception will be thrown. The `old_uri` parameter
must contain the existing URI of the mirror and is required. All other
paramters are optional. Returns true on succesful update and false on failure,
parameters are optional. Returns true on successful update and false on failure,
which will happen if the existing URI cannot be found in the database.
*/
Expand Down
8 changes: 4 additions & 4 deletions sql/10-json_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ CREATE OR REPLACE FUNCTION tag_json(
For a given distribution and version, returns a set of tags and the JSON to
describe them. In this example, pair 0.1.0 has two tags. The tag "key value "
is associated with pgtap 0.1.1 and trip 0.0.1. The tag "ordered pair", on the
other hand, is associcated with three versions of the "pair" distribution, as
other hand, is associated with three versions of the "pair" distribution, as
well.
*/
Expand Down Expand Up @@ -604,7 +604,7 @@ Returns a JSON string containing extension statitics. These include:
* `count`: A count of the number of extensions in the database.
* `recent`: A list of recently-released extensions sorted in reverse
chronlogical order.
chronological order.
Pass in the optional `num_recent` parameter to limit the number of extensions
that appear in the recent list. The default limit is 56.
Expand Down Expand Up @@ -673,12 +673,12 @@ CREATE OR REPLACE FUNCTION dist_stats_json(
] ↵
} ↵
Returns a JSON string containing distribution statitics. These include:
Returns a JSON string containing distribution statistics. These include:
* `count`: A count of the number of distributions in the database.
* `releases`: A count of all releases of all distributions in the database.
* `recent`: A list of recently-released distributions sorted in reverse
chronlogical order.
chronological order.
Pass in the optional `num_recent` parameter to limit the number of
distributions that appear in the recent list. The default limit is 56.
Expand Down
6 changes: 3 additions & 3 deletions sql/16-user-funcs.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEGIN;

-- Utilityt function to create the password salt, so it can be quickly swapped
-- Utility function to create the password salt, so it can be quickly swapped
-- for new algorithms in the future.
CREATE OR REPLACE FUNCTION _salt(
) RETURNS TEXT LANGUAGE SQL AS $$
Expand Down Expand Up @@ -98,7 +98,7 @@ CREATE OR REPLACE FUNCTION change_password(
Changes a user's password. The user must be active, and the old password must
match the existing password for the nickname or the password will not be set.
The password must be at least four charcters long or an exception will be
The password must be at least four characters long or an exception will be
thrown. Returns true if the password was changed and false if it was not.
*/
Expand Down Expand Up @@ -134,7 +134,7 @@ an exception will be thrown if it is not. The user must be active. The return
value is a two-element array. The first value is the token, and the second the
email address of the user. The token will be set to expire 1 day from creation.
Returns `NULL` if the token cannot be created (because no user exists for the
specified nickname or the user is not ative).
specified nickname or the user is not active).
*/
DECLARE
Expand Down

0 comments on commit 98c0a06

Please sign in to comment.