Skip to content

Fixing default values from getTableColumns#180

Merged
wilsonge merged 4 commits intojoomla-framework:2.0-devfrom
Hackwar:patch-1
Aug 11, 2019
Merged

Fixing default values from getTableColumns#180
wilsonge merged 4 commits intojoomla-framework:2.0-devfrom
Hackwar:patch-1

Conversation

@Hackwar
Copy link
Contributor

@Hackwar Hackwar commented Aug 5, 2019

This PR stems from an error thrown by the tests in this PR: joomla/joomla-cms#25761

The getTableColumns() method for Postgres returns some funky data for at least the datetime column type. The default for the given column is '1970-01-01 00:00:00' (as wrong as that is as a null value...), but the default value given from getTableColumns (and subsequently used by JTable) is "'1970-01-01 00:00:00'::timestamp without time zone". This tries to fix that. I also think that the null-code around line 228 has to be moved up like I did, otherwise it wont do anything... With this code, the PR mentioned above, passes.

@Hackwar Hackwar mentioned this pull request Aug 10, 2019
@wilsonge
Copy link
Contributor

Can you rebase this onto 2.0-dev please now

@Hackwar
Copy link
Contributor Author

Hackwar commented Aug 11, 2019

There you go.

@wilsonge wilsonge merged commit bb83459 into joomla-framework:2.0-dev Aug 11, 2019
@wilsonge
Copy link
Contributor

Thanks!

@Hackwar Hackwar deleted the patch-1 branch August 11, 2019 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants