-
-
Notifications
You must be signed in to change notification settings - Fork 37
PostgreSQL - return the same string each time of call __toString() on update query with join #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Ping @csthomas |
| /** | ||
| * The instance of the object to test. | ||
| * | ||
| * @var PostgresqlQuery |
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.
__DEPLOY_VERSION__
| * | ||
| * @var PostgresqlQuery | ||
| * @since _VERSION_NAME_ | ||
| */ |
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.
Unless there is an actual need, let's not introduce an underscore prefixed variable.
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.
I'll remove the underscore but leave the variable, I just followed what the CMS did for the test changes with test__toStringUpdate()
| * @param boolean $new True to get a new query, false to get the last query. | ||
| * | ||
| * @return PostgresqlQuery | ||
| * |
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.
__DEPLOY_VERSION__
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.
fixed all of these to the correct string
src/Postgresql/PostgresqlQuery.php
Outdated
| $query .= (string) $this->where; | ||
| } | ||
|
|
||
| $this->from = $tmpFrom; |
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.
Extra indenting here and the next line.
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.
fixed
Tests/QueryPostgresqlTest.php
Outdated
| * @return void | ||
| * | ||
| * @see PHPUnit_Framework_TestCase::tearDown() | ||
| * @since _VERSION_NAME_ |
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.
__DEPLOY_VERSION__
Pull Request for Issue - backports joomla/joomla-cms#13284
Summary of Changes
Testing Instructions
Test by travis.
Code review.
Documentation Changes Required
none