-
Notifications
You must be signed in to change notification settings - Fork 301
PostgreSQL driver for Joomla! platform. #532
Conversation
Thanks Gabriele! |
Looks interesting. I didn't check the functionality extensively, but I noticed three things. The first is, that you have a series of deprecated messages, which you marked with 11.3. As I understood it, the deprecation marking means the version where it is removed, which would be the next release in your case. The second thing is, that it seems as if something went wrong while merging in the media package. There are two files with a few strange lines at the top. The last thing is an added jimport for JLog in JRegistry. I learned that recently, too, that JLog does not get a jimport anymore, since it is loaded in the bootstrap of the framework. |
Hi hackwar, I've erroneously marked as 11.3 because I've done a find&replace all 11.1 that I've had inside my code. |
Broken files in media package: unnecessary jimport('joomla.log.log'): |
Build triggered by changes to the base. Test log missing. Tests failed to execute. |
@@ -53,6 +53,8 @@ class JRegistryFormatJSON extends JRegistryFormat | |||
$options = array('processSections' => $options); | |||
|
|||
// Deprecation warning. | |||
jimport('joomla.log.log'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Call is not needed because of the autoloader.
Hannes deprecation is the release at which deprecation is announced and is a warning that it will be released in the future. That is how we use it thoughout the platform and the CMS. We learned a long time ago not to predict when things will actually be removed but instead give a warning that removal is coming. |
Commits added to correct highlighted issues. |
Build triggered by changes to the head. Test log missing. Tests failed to execute. |
@elin didn't we just change it a bit back to say the release win we remove stuff and not the release in which it was first deprecated. |
@@ -11,6 +11,8 @@ defined('JPATH_PLATFORM') or die; | |||
|
|||
jimport('joomla.database.table'); | |||
|
|||
jimport('joomla.database.table'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sams as line 12, please remove.
@gpongelli |
Code Style and unit test report: http://elkuku.github.com/pulltester/pulls/532.html |
Those who forget the past are condemned to repeat it. |
@elin it's really strange, I continuously merge postgresql branch with fetched master branch but some of changes on master branch, not related to postgresql, seems to be lost. @realityking wow, how can I generate this report, so I can correct all once ? joomla-jenkins said test log missing, which are those files so I can commit them ? |
@ALL I've added some label used inside errorMsg variable, where can I add english translation of these strings ? |
Right now they are still figuring out how to package the strings so in the CMS it will get put into the file what holds all the library strings. Not much else to do about it right now. |
For the code style stuff phpcs is used (https://github.com/sebastianbergmann/phpcs-sebastian) As for rebasing, here's dome documentation on it: http://help.github.com/rebase/ But that should be the last thing to do after all is fixed. |
Conflicts: libraries/joomla/installer/adapters/module.php libraries/joomla/session/storage/database.php
Something went wrong here, this pull contains several commits that are already part of master. |
Whats goes wrong? Eng. Gabriele Pongelli |
Did you happen to rebase you branch? that may have gone wrong. Maybe Ian knows a way to fix this, if he don't I suggest creating a patch from this pull request (https://github.com/joomla/joomla-platform/pull/532.patch), applying that to a fresh branch and making a new pull request from the new branch. |
No, I didn't rebase this branch, I've only merged last master changes in this branch without rebasing it. What error do you receive ? |
JDatabaseExporterPostgreSqlInspector classes to test exporter class.
retrieving an array of stdClass .
stdClass containing all the columns instead of retrieving only type field.
JDatabaseImporterPostgreSqlInspector classes to test importer class.
- "select" hasn't default parameter value. - "getTableKeys" hasn't double quote around table name for changing primary key query.
This driver implements inherited function from JDatabase class and add some other useful function to be able to use Joomla! on PostgreSQL database.
There is also a class that inherits from JDatabaseQuery to be able to create query object using PostgreSQL dialect.
These two classes are tested by other two classes under "test" folder.
PostgreSQL's added functions:
Overridden functions:
PostgreSQL database query added functions: