Skip to content
Snippets Groups Projects
Commit c1e84352 authored by catch's avatar catch
Browse files

Issue #3154669 by longwave, jungle, mohrerao, jameszhang023, ravi.shankar,...

Issue #3154669 by longwave, jungle, mohrerao, jameszhang023, ravi.shankar, quietone: Fix or ignore 33 words only used in the PostgreSQL driver
parent 863b2b35
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
use Drupal\Core\Database\DatabaseNotFoundException;
use Drupal\Core\Database\StatementInterface;
// cSpell:ignore ilike nextval
/**
* @addtogroup database
* @{
......@@ -258,7 +260,7 @@ public function mapConditionOperator($operator) {
public function nextId($existing = 0) {
// Retrieve the name of the sequence. This information cannot be cached
// because the prefix may change, for example, like it does in simpletests.
// because the prefix may change, for example, like it does in tests.
$sequence_name = $this->makeSequenceName('sequences', 'value');
// When PostgreSQL gets a value too small then it will lock the table,
......
......@@ -5,6 +5,8 @@
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Query\Insert as QueryInsert;
// cSpell:ignore nextval setval
/**
* @ingroup database
* @{
......
......@@ -6,6 +6,12 @@
use Drupal\Core\Database\SchemaObjectDoesNotExistException;
use Drupal\Core\Database\Schema as DatabaseSchema;
// cSpell:ignore adbin adnum adrelid adsrc attisdropped attname attnum attrdef
// cSpell:ignore attrelid atttypid atttypmod bigserial conkey conname conrelid
// cSpell:ignore contype fillfactor indexname indexrelid indisprimary indkey
// cSpell:ignore indrelid nextval nspname regclass relkind relname relnamespace
// cSpell:ignore schemaname setval
/**
* @addtogroup schemaapi
* @{
......@@ -566,6 +572,7 @@ public function renameTable($table, $new_name) {
// If the index is already rewritten by ensureIdentifiersLength() to not
// exceed the 63 chars limit of PostgreSQL, we need to take care of that.
// cSpell:disable-next-line
// Example (drupal_Gk7Su_T1jcBHVuvSPeP22_I3Ni4GrVEgTYlIYnBJkro_idx).
if (strpos($index->indexname, 'drupal_') !== FALSE) {
preg_match('/^drupal_(.*)_' . preg_quote($index_type) . '/', $index->indexname, $matches);
......@@ -945,12 +952,12 @@ public function changeField($table, $field, $field_new, $spec, $new_keys = []) {
if (isset($spec['not null'])) {
if ($spec['not null']) {
$nullaction = 'SET NOT NULL';
$null_action = 'SET NOT NULL';
}
else {
$nullaction = 'DROP NOT NULL';
$null_action = 'DROP NOT NULL';
}
$this->connection->query('ALTER TABLE {' . $table . '} ALTER "' . $field . '" ' . $nullaction);
$this->connection->query('ALTER TABLE {' . $table . '} ALTER "' . $field . '" ' . $null_action);
}
if (in_array($spec['pgsql_type'], ['serial', 'bigserial'])) {
......
......@@ -4,6 +4,8 @@
use Drupal\Core\Database\Query\Upsert as QueryUpsert;
// cSpell:ignore nextval setval
/**
* PostgreSQL implementation of \Drupal\Core\Database\Query\Upsert.
*/
......
......@@ -9,15 +9,11 @@ accesslog
accum
actionid
adamson
adbin
addedline
addtogroup
admin's
adminforms
adminlabel
adnum
adrelid
adsrc
aewesome
aflopend
afterbegin
......@@ -81,17 +77,10 @@ atomentry
atomfeed
atomrendererfeed
atsign
attisdropped
attname
attnum
attrdef
attrelid
attributename
attrlist
attrval
attrvals
atttypid
atttypmod
auditable
auth's
authless
......@@ -170,7 +159,6 @@ bgcolor
bgred
bgsound
bigpipe
bigserial
bikeshed
bikesheds
bing
......@@ -321,10 +309,7 @@ configurability
configurator
confirm's
conformant
conkey
conname
conneg
conrelid
contaynz
contentblock
contenteditable
......@@ -335,7 +320,6 @@ contextuals
contrained
contribs
controlgroup
contype
coord
copmplete
corefake
......@@ -623,7 +607,6 @@ filestorage
filesystems
filetransfer
filevalidationerror
fillfactor
filterprovider
filtertypes
findwith
......@@ -788,17 +771,12 @@ iframe's
iframes
iframeupload
ignoretag
ilike
imagecache
imagecreatefrom
imagefields
imagetest
inator
indexname
indexrelid
indisprimary
indkey
indrelid
ingoa
inited
inno
......@@ -839,7 +817,6 @@ janvier
javascripts
jcbfyr
jessebeach
jkro
jnoub
johansson
johndoe
......@@ -1118,7 +1095,6 @@ newname
newnode
newstr
newterm
nextval
nfocus
nids
nightlies
......@@ -1180,13 +1156,11 @@ nplurals
npoll
nprofile
nresponse
nspname
nstrings
nsync
ntaxonomy
ntfs
nturn
nullaction
nyan
nyancat
nyans
......@@ -1423,7 +1397,6 @@ referencer
referencers
referer
refinable
regclass
regexes
rehydrated
reimplement
......@@ -1434,9 +1407,6 @@ reinitializes
reinject
reinstantiated
reiss
relkind
relname
relnamespace
removeformat
renderable
renderables
......@@ -1507,7 +1477,6 @@ scaffol
scarlett
schemaapi
schemaless
schemaname
schemeless
schipul
schipulcon
......@@ -1535,7 +1504,6 @@ serviceform
sess
sessionpath
settingstray
setval
sharedspace
shatner
shorterthan
......@@ -1549,7 +1517,6 @@ silverlight
silvie
simpletest
simpletest's
simpletests
singlebyte
sioc
sioct
......
......@@ -5,6 +5,8 @@
use Drupal\Core\Database\Driver\pgsql\Schema;
use Drupal\Tests\UnitTestCase;
// cSpell:ignore conname
/**
* @coversDefaultClass \Drupal\Core\Database\Driver\pgsql\Schema
* @group Database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment