GithubHelp home page GithubHelp logo

ez_sql_mysqli.php about ezsql HOT 14 CLOSED

dialysisreport avatar dialysisreport commented on May 12, 2024
ez_sql_mysqli.php

from ezsql.

Comments (14)

jtoronto1 avatar jtoronto1 commented on May 12, 2024

Same issue here. Older version of mysqli works fine. Latest version returns no results.

from ezsql.

ozh avatar ozh commented on May 12, 2024

Everything seems to work fine with me. This bug report is near to useless: "some queries" and "an older version" cannot be more vague.

from ezsql.

jv2222 avatar jv2222 commented on May 12, 2024

jtoronto1 & dialysisreport: Can you give us some examples of things that
are breaking for you? It would be very helpful if you could supply a small
create table with some data and then some queries that are breaking against
that data. Thanks!

On 4 March 2014 08:36, ྅༻ Ǭɀħ ༄༆ཉ [email protected] wrote:

Everything seems to work fine with me. This bug report is near to useless:
"some queries" and "an older version" cannot be more vague.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-36644475
.

from ezsql.

dialysisreport avatar dialysisreport commented on May 12, 2024

@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...

from ezsql.

jv2222 avatar jv2222 commented on May 12, 2024

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 [email protected] wrote:

Sorry, but there are no versions on the files themselves, how am I
supposed to tell you what version the file is? And 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.

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-36648601
.

from ezsql.

dialysisreport avatar dialysisreport commented on May 12, 2024

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!)
http://dialysisreport.org/_test/test_older.php
http://dialysisreport.org/_test/test_latest.php

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; }

from ezsql.

jtoronto1 avatar jtoronto1 commented on May 12, 2024

My code looks like:
$value = $db->get_var("SELECT testValue FROM test_Settings WHERE testName = 'TEST_VERSION' LIMIT 1");

Using the original "ez_sql_mysqli.php" file it works:
ezSQL (v2.17) Debug..
Query [1] -- [SELECT testValue FROM test_Settings WHERE testName = 'TEST_VERSION' LIMIT 1]
Query Result..
(row) 252 2
testValue
1 45

Using the current "ez_sql_mysqli.php" file it does not work:
ezSQL (v2.17) Debug..
Query [1] -- [SELECT testValue FROM test_Settings WHERE testName = 'TEST_VERSION' LIMIT 1]
Query Result..
No Results

Note: the ez_sql_mysqli.php does not have a version number so that v2.17 is coming from the core.

from ezsql.

dialysisreport avatar dialysisreport commented on May 12, 2024

When I take out the code update from
df8d8e5
The query works as expected.

from ezsql.

jv2222 avatar jv2222 commented on May 12, 2024

Good work! So it seems like it relates to...

what happens if you change this...

if ( ! isset($this->dbh) || ! $this->dbh->connect_errno )
return false;

to this...

if ( ! isset($this->dbh) || ! $this->dbh )
return false;

line 254

On 4 March 2014 10:30, Dialysis Report [email protected] wrote:

When I take out the code update from
df8d8e5df8d8e5
The query works as expected.

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-36657172
.

from ezsql.

jv2222 avatar jv2222 commented on May 12, 2024

Ok I made a change in the code can you try the latest version. Thanks!

from ezsql.

dialysisreport avatar dialysisreport commented on May 12, 2024

@jv2222 that worked for me. Thanks!

line: 254
if ( ! isset($this->dbh) || ! $this->dbh )
return false;

from ezsql.

jv2222 avatar jv2222 commented on May 12, 2024

Ok you shoulfd be able to use the latest version from github thanks for
your help!

On 4 March 2014 10:43, Dialysis Report [email protected] wrote:

@jv2222 https://github.com/jv2222 that worked for me.

line: 254

if ( ! isset($this->dbh) || ! $this->dbh )
return false;

Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-36658608
.

from ezsql.

dialysisreport avatar dialysisreport commented on May 12, 2024

The ezSQL code had made my life much easier, thanks to you and all the contributors! Thanks for all your work.

from ezsql.

jtoronto1 avatar jtoronto1 commented on May 12, 2024

Thanks for the quick fix!

from ezsql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.