Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[Db\Sql\Platform\Mysql\Ddl] override getSqlString() is wrong #7038

Merged
merged 1 commit into from
Dec 16, 2014
Merged

[Db\Sql\Platform\Mysql\Ddl] override getSqlString() is wrong #7038

merged 1 commit into from
Dec 16, 2014

Conversation

turrsis
Copy link
Contributor

@turrsis turrsis commented Dec 15, 2014

No description provided.

@Ocramius
Copy link
Member

@turrsis needs a test case that validates the "wrong" in the issue description :-)

@turrsis
Copy link
Contributor Author

turrsis commented Dec 16, 2014

  1. This functional is already exist in parent class (see AbstractSql::getSqlString() then AbstractSql::buildSqlString()).
  2. Below code is dublicate AbstractSql::localizeVariables()
    // localize variables
    foreach (get_object_vars($this->subject) as $name => $value) {
    $this->{$name} = $value;
  1. For override should inherit AbstractSql::buildSqlString
  2. This functions was removed in Db\Sql - cleaning code duplicates #5701

@Ocramius
Copy link
Member

Ah, I see: wrong conflict resolution. Merging, thanks!

Ocramius added a commit that referenced this pull request Dec 16, 2014
…rong-override

[Db\Sql\Platform\Mysql\Ddl] override getSqlString() is wrong
@Ocramius Ocramius merged commit df29b8d into zendframework:develop Dec 16, 2014
@Martin-P
Copy link
Contributor

Travis shows this change is breaking tests, so either tests need to be updated or this code was not wrong after all.

@turrsis
Copy link
Contributor Author

turrsis commented Dec 16, 2014

@Martin-P where i can see this Travis log?

@Martin-P
Copy link
Contributor

You can click the red cross next to your commit. This page shows the errors for the different PHP versions: https://travis-ci.org/zendframework/zf2/builds/44094896

@Ocramius
Copy link
Member

@Martin-P the tests were broken upfront by a previous Zend\Db rebase+merge.

Most probably https://travis-ci.org/zendframework/zf2/builds/43678177 ( #6556 )

@turrsis turrsis deleted the hotfix/db/sql/platform/remove-wrong-override branch February 10, 2015 11:56
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants