Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/databasetraits/TableTrait.php')
-rw-r--r--src/database/databasetraits/TableTrait.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/database/databasetraits/TableTrait.php b/src/database/databasetraits/TableTrait.php
index 39a82db1..c992d2e3 100644
--- a/src/database/databasetraits/TableTrait.php
+++ b/src/database/databasetraits/TableTrait.php
@@ -1134,7 +1134,7 @@ trait TableTrait
);
if ($cascade) {
- $sql = $sql . ' CASCADE';
+ $sql .= ' CASCADE';
}
$status = $this->execute($sql);
@@ -1241,12 +1241,7 @@ trait TableTrait
{
$this->fieldClean($relation);
- // Actually retrieve the rows
- if ($oids) {
- $oid_str = $this->id . ', ';
- } else {
- $oid_str = '';
- }
+ $oid_str = $oids ? $this->id . ', ' : '';
return $this->selectSet(\sprintf(
'SELECT %s* FROM "%s"',