Skip to content

Commit

Permalink
Merge pull request #16509 from niden/T16371-postgres-fix
Browse files Browse the repository at this point in the history
T16371 postgres fix
  • Loading branch information
niden authored Jan 11, 2024
2 parents feaa3de + 3e7f8cd commit 5145d88
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## [5.6.1](https://github.com/phalcon/cphalcon/releases/tag/v5.6.0) (xxxx-xx-xx)

### Changed

### Added

### Fixed

- Fixed `/Db/Adapter/Pdo/Postgresql::describeColumns` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)

### Removed

# Changelog

## [5.6.0](https://github.com/phalcon/cphalcon/releases/tag/v5.6.0) (2024-01-09)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion phalcon/Db/Adapter/Pdo/Postgresql.zep
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ class Postgresql extends PdoAdapter
*/
if field[9] !== null {
let definition["default"] = preg_replace(
"/^'|'?::[[:alnum:][:space:]]+$/",
"/^'|'?::[[:alnum:][:space:]]+(\\[\\])?$/",
"",
field[9]
);
Expand Down

0 comments on commit 5145d88

Please sign in to comment.