summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2026-03-01 00:17:19 +0100
committerDamien Regad <dregad@mantisbt.org>2026-03-01 00:17:19 +0100
commitd6be564d940a4b15279c54c650a333f6b953258f (patch)
tree19d7d81d4a4ecea8f7afba62e4839b35ad1f28ce
parent71beadd0e85bc36c112747dc8f5367b641bba576 (diff)
downloadadodb-d6be564d940a4b15279c54c650a333f6b953258f.tar.gz
adodb-d6be564d940a4b15279c54c650a333f6b953258f.tar.bz2
adodb-d6be564d940a4b15279c54c650a333f6b953258f.zip
Whitespace
-rw-r--r--adodb.inc.php18
-rw-r--r--drivers/adodb-postgres64.inc.php24
2 files changed, 21 insertions, 21 deletions
diff --git a/adodb.inc.php b/adodb.inc.php
index 453f4e7d..b5006965 100644
--- a/adodb.inc.php
+++ b/adodb.inc.php
@@ -757,14 +757,14 @@ if (!defined('_ADODB_LAYER')) {
var $locale;
/**
- * Setting true forces {@see metaColumns()} to read the db for
- * each access of a table instead of using cached version.
+ * Setting true forces {@see metaColumns()} to read the db for
+ * each access of a table instead of using cached version.
* Currently only works on mssqlnative
- *
+ *
* @var bool
*/
public bool $cachedSchemaFlush = false;
-
+
/**
* Default Constructor.
@@ -3390,7 +3390,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
/**
* List columns names in a table as an array
- *
+ *
* @param string $table table name to query
* @param bool $numIndexes return numeric keys
* @param bool $useattnum discarded in base class
@@ -3398,11 +3398,11 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
* @return false|array of column names for current table.
*/
public function MetaColumnNames(
- string $table,
- bool $numIndexes=false,
+ string $table,
+ bool $numIndexes=false,
bool $useattnum=false
) {
-
+
$objarr = $this->MetaColumns($table);
if (!is_array($objarr)) {
return false;
@@ -3884,7 +3884,7 @@ http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_1
* CHAR fields
*
* @param string $fieldName The field length to measure
- *
+ *
* @return string
*/
public function length(string $fieldName): string
diff --git a/drivers/adodb-postgres64.inc.php b/drivers/adodb-postgres64.inc.php
index 9fd8ee5c..eb1be6b3 100644
--- a/drivers/adodb-postgres64.inc.php
+++ b/drivers/adodb-postgres64.inc.php
@@ -531,7 +531,7 @@ class ADODB_postgres64 extends ADOConnection{
$rs = $this->Execute($this->_generateMetaColumnsSQL($table, $schema));
if (isset($savem)) {
$this->SetFetchMode($savem);
- }
+ }
$ADODB_FETCH_MODE = $save;
if ($rs === false) {
@@ -578,10 +578,10 @@ class ADODB_postgres64 extends ADOConnection{
while (!$rsdef->EOF) {
$fields = array_change_key_case($rsdef->fields, CASE_LOWER);
-
+
$num = $fields['num'];
$s = $fields['def'];
-
+
if (strpos($s,'::')===false && substr($s, 0, 1) == "'") { /* quoted strings hack... for now... fixme */
$s = substr($s, 1);
$s = substr($s, 0, strlen($s) - 1);
@@ -623,9 +623,9 @@ class ADODB_postgres64 extends ADOConnection{
// Freek
if (is_array($keys)) {
- foreach($keys as $key) {
+ foreach($keys as $key) {
$key = array_change_key_case($key, CASE_LOWER);
-
+
if ($fld->name == $key['column_name'] && $key['primary_key'] == 't') {
$fld->primary_key = true;
}
@@ -648,7 +648,7 @@ class ADODB_postgres64 extends ADOConnection{
return $retarr ?: false;
}
-
+
/**
* List columns names in a table as an array.
* @param string $table table name to query
@@ -658,11 +658,11 @@ class ADODB_postgres64 extends ADOConnection{
* @return false|array of column names for current table.
*/
public function MetaColumnNames(
- string $table,
- bool $numIndexes=false,
+ string $table,
+ bool $numIndexes=false,
bool $useattnum=false
) {
-
+
$objarr = $this->MetaColumns($table);
if (!is_array($objarr)) {
return false;
@@ -674,7 +674,7 @@ class ADODB_postgres64 extends ADOConnection{
/*
* overrides associative keys
*/
- $columnNames[$v->attnum] = $v->name;
+ $columnNames[$v->attnum] = $v->name;
} else {
$columnNames[strtoupper($v->name)] = $v->name;
}
@@ -685,9 +685,9 @@ class ADODB_postgres64 extends ADOConnection{
}
return $columnNames;
-
+
}
-
+
function param($name, $type='C')
{
if (!$name) {