diff options
| author | Mark Newnham <mark@newnhams.com> | 2026-02-08 17:25:20 -0700 |
|---|---|---|
| committer | Mark Newnham <mark@newnhams.com> | 2026-02-08 17:25:20 -0700 |
| commit | d86521c62332cf3165326c4814c8726286fe27d1 (patch) | |
| tree | 2ef1e22a430b802c0cbaa76bd16858e46ef2b9b7 /datadict | |
| parent | 4ff1ec4ad6fba4681750d14a823834eda3f7f374 (diff) | |
| download | adodb-d86521c62332cf3165326c4814c8726286fe27d1.tar.gz adodb-d86521c62332cf3165326c4814c8726286fe27d1.tar.bz2 adodb-d86521c62332cf3165326c4814c8726286fe27d1.zip | |
Fixes invalid array key error
Diffstat (limited to 'datadict')
| -rw-r--r-- | datadict/datadict-postgres.inc.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/datadict/datadict-postgres.inc.php b/datadict/datadict-postgres.inc.php index c12984aa..0839a331 100644 --- a/datadict/datadict-postgres.inc.php +++ b/datadict/datadict-postgres.inc.php @@ -232,7 +232,11 @@ class ADODB2_postgres extends ADODB_DataDict list(,$colname,$default) = $matches; $alter .= $colname; if ($this->connection) { - $old_coltype = $this->connection->metaType($existing[strtoupper($colname)]); + if (array_key_exists(strtoupper($colname), $existing)) { + $old_coltype = $this->connection->metaType($existing[strtoupper($colname)]); + } else { + $old_coltype = $t; + } } else { $old_coltype = $t; } |
