diff options
author | Jean-Michel Vourgère | 2019-11-07 09:10:07 +0000 |
---|---|---|
committer | Jean-Michel Vourgère | 2019-11-07 09:10:07 +0000 |
commit | 412990f57c5ab5ec4ead9ec09d39e650993730d5 (patch) | |
tree | 19737f65c4c8bedd68347edafce7c786e11fed53 /classes/database | |
parent | b8140fe276e0f75ce6798205a2908c0907e4aa4f (diff) |
codespell assisted typo cleaning
Diffstat (limited to 'classes/database')
-rw-r--r-- | classes/database/Postgres.php | 10 | ||||
-rw-r--r-- | classes/database/Postgres10.php | 4 | ||||
-rw-r--r-- | classes/database/Postgres84.php | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/classes/database/Postgres.php b/classes/database/Postgres.php index 500843c4..04e639b4 100644 --- a/classes/database/Postgres.php +++ b/classes/database/Postgres.php @@ -698,7 +698,7 @@ class Postgres extends ADODB_base { if (!$conf['show_system']) { // XXX: The mention of information_schema here is in the wrong place, but // it's the quickest fix to exclude the info schema from 7.4 - $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'"; + $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'"; $lan_where = "AND pl.lanispl"; } else { @@ -712,7 +712,7 @@ class Postgres extends ADODB_base { $sql = "SELECT * FROM ("; } - $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$"; + $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$"; $sql .= " SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name @@ -3126,7 +3126,7 @@ class Postgres extends ADODB_base { /** * Updates a view. - * @param $viewname The name fo the view to update + * @param $viewname The name of the view to update * @param $definition The new definition for the view * @return 0 success * @return -1 transaction error @@ -3557,7 +3557,7 @@ class Postgres extends ADODB_base { // get the max number of col used in a constraint for the table $sql = "SELECT DISTINCT - max(SUBSTRING(array_dims(c.conkey) FROM \$patern\$^\\[.*:(.*)\\]$\$patern\$)) as nb + max(SUBSTRING(array_dims(c.conkey) FROM \$pattern\$^\\[.*:(.*)\\]$\$pattern\$)) as nb FROM pg_catalog.pg_constraint AS c JOIN pg_catalog.pg_class AS r ON (c.conrelid=r.oid) JOIN pg_catalog.pg_namespace AS ns ON (r.relnamespace=ns.oid) @@ -7004,7 +7004,7 @@ class Postgres extends ADODB_base { } /** - * Helper function that computes encypted PostgreSQL passwords + * Helper function that computes encrypted PostgreSQL passwords * @param $username The username * @param $password The password */ diff --git a/classes/database/Postgres10.php b/classes/database/Postgres10.php index 77bbe455..f7a02be4 100644 --- a/classes/database/Postgres10.php +++ b/classes/database/Postgres10.php @@ -47,7 +47,7 @@ class Postgres10 extends Postgres11 { if (!$conf['show_system']) { // XXX: The mention of information_schema here is in the wrong place, but // it's the quickest fix to exclude the info schema from 7.4 - $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'"; + $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'"; $lan_where = "AND pl.lanispl"; } else { @@ -61,7 +61,7 @@ class Postgres10 extends Postgres11 { $sql = "SELECT * FROM ("; } - $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$"; + $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$"; $sql .= " SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name diff --git a/classes/database/Postgres84.php b/classes/database/Postgres84.php index 59d9f2f7..81fde26a 100644 --- a/classes/database/Postgres84.php +++ b/classes/database/Postgres84.php @@ -98,7 +98,7 @@ class Postgres84 extends Postgres90 { if (!$conf['show_system']) { // XXX: The mention of information_schema here is in the wrong place, but // it's the quickest fix to exclude the info schema from 7.4 - $where = " AND pn.nspname NOT LIKE \$_PATERN_\$pg\_%\$_PATERN_\$ AND pn.nspname != 'information_schema'"; + $where = " AND pn.nspname NOT LIKE \$_PATTERN_\$pg\_%\$_PATTERN_\$ AND pn.nspname != 'information_schema'"; $lan_where = "AND pl.lanispl"; } else { @@ -112,7 +112,7 @@ class Postgres84 extends Postgres90 { $sql = "SELECT * FROM ("; } - $term = "\$_PATERN_\$%{$term}%\$_PATERN_\$"; + $term = "\$_PATTERN_\$%{$term}%\$_PATTERN_\$"; $sql .= " SELECT 'SCHEMA' AS type, oid, NULL AS schemaname, NULL AS relname, nspname AS name |