-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
columns blank in select clause (coredump in master). Reproducible, tests provided, tested in master also #10248
Comments
Could you please try again compiling from 2.0.x? |
Will double check but I'm reasonably certain I have checked that also. |
I was wrong ..or this got fixed in the last day or so. Seems to work ok. Many thanks. am@portland:~/projects/phalcontest/bin$ php TestTree.php I have a few more complicated test cases which are actually running the code base I'd like to test first if before closing the issue if that's ok ? Also do you know which commit likely fixes this issue? As I may need to backport this until the next release of phalcon |
@masenocturnal see #10247. 2.0.1 is probably getting released very soon. |
@masenocturnal This has been fixed, see #10217 |
All looks good. This can be closed. Where is the design/ release date discussed? Is there a mailing list or irc meeting? I have few questions regarding the change of interfaces between versions which so far both irc and the forums have been unable to answer. On 6 May 2015 12:46:13 am ACST, Vladimir Metelitsa notifications@github.com wrote:
|
@masenocturnal Create a new issue to discuss here |
Tested on :
Behavior (cphalcon/2.0.0) :
When executing a self join (it may occur under other scenarios, I am unsure) using the query builder the resulting select clause does not list any column names.
Behaviour (cphalcon/master)
In the cphalcon/master it results in a core dump. commit #31bb51afeeae6dd9fb32ea70ef104fa80a8c9214 attempts to work around this issue however something further down the stack results in a dump.
Expected Behavior:
In addition, a PHP Notice is raised :
am@portland:~/projects/phalcontest/bin$ php TestTree.php
PHP Notice: Undefined index: 0 in phalcon/db/dialect.zep on line 364 in / /home/am/projects/phalcontest/bin/TestTree.php on line 40
PHP Stack trace:
PHP 1. {main}() /home/am/projects/phalcontest/bin/TestTree.php:0
PHP 2. TestTree->getTree() /home/am/projects/phalcontest/bin/TestTree.php:20
PHP 3. Phalcon\Db\Dialect->select() /home/am/projects/phalcontest/bin/TestTree.php:40
PHP Notice: Undefined index: 0 in phalcon/db/dialect.zep on line 364 in /home/am/projects/phalcontest/bin/TestTree.php on line 40
use case
As you may have already worked out this is used to implement a nested sets pattern within the database.
To reproduce
Database component required
I've tried to debug this myself however I don't really understand where the issue lies. If someone can explain the issue I'm happy to have a go at fixing this.
The text was updated successfully, but these errors were encountered: