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
ez_sql_mysqli.php #49
Comments
Same issue here. Older version of mysqli works fine. Latest version returns no results. |
Everything seems to work fine with me. This bug report is near to useless: "some queries" and "an older version" cannot be more vague. |
jtoronto1 & dialysisreport: Can you give us some examples of things that On 4 March 2014 08:36, ྅༻ Ǭɀħ ༄༆ཉ notifications@github.com wrote:
|
@ozh Sorry, but there are no versions on the files themselves, how am I supposed to tell you what version the file is? I agree, I don't give much to go on, but that is all I have for now. And because it works "fine for you" doesn't mean there is not a problem. Yes the problem is inconsistent, there is no pattern, some queries work, some simply return No Results, when the same query is run directly on the database, it returns results. @jv2222 I will try to gather some data for an example... |
Can you post a few of the queries that work, and also a few that don't... On 4 March 2014 09:11, Dialysis Report notifications@github.com wrote:
|
Here is an example using 2 different ez_sql_mysqli.php files (older / latest) they are running the exact same query - one works, one doesn't. If you want the database file, let me know. Maybe I'm doing something wrong, but I've used this awesome software for years. (Love it!) Here what is running use_disk_cache = false; $db->cache_queries = false; $db_data = $db->get_results("SELECT permalink FROM tbltest;"); $db->debug(); foreach ( $db_data as $data ) { $permalink = $data->permalink; echo "http://dialysisreport.org/$permalink/".PHP_EOL; } |
My code looks like: Using the original "ez_sql_mysqli.php" file it works: Using the current "ez_sql_mysqli.php" file it does not work: Note: the ez_sql_mysqli.php does not have a version number so that v2.17 is coming from the core. |
When I take out the code update from |
Good work! So it seems like it relates to... what happens if you change this... if ( ! isset($this->dbh) || ! $this->dbh->connect_errno ) to this... if ( ! isset($this->dbh) || ! $this->dbh ) line 254 On 4 March 2014 10:30, Dialysis Report notifications@github.com wrote:
|
Ok I made a change in the code can you try the latest version. Thanks! |
@jv2222 that worked for me. Thanks! line: 254 |
Ok you shoulfd be able to use the latest version from github thanks for On 4 March 2014 10:43, Dialysis Report notifications@github.com wrote:
|
The ezSQL code had made my life much easier, thanks to you and all the contributors! Thanks for all your work. |
Thanks for the quick fix! |
There has to be a bug in the latest ez_sql_mysqli.php file, when I upgrade to the latest version, some queries return No Results, when there should be results, as soon as I replace it with an older version of ez_sql_mysqli.php, the results are returned as expected.
The text was updated successfully, but these errors were encountered: