Comments (14)
Same issue here. Older version of mysqli works fine. Latest version returns no results.
from ezsql.
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.
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.
@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.
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.
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.
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.
When I take out the code update from
df8d8e5
The query works as expected.
from ezsql.
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.
Ok I made a change in the code can you try the latest version. Thanks!
from ezsql.
@jv2222 that worked for me. Thanks!
line: 254
if ( ! isset($this->dbh) || ! $this->dbh )
return false;
from ezsql.
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.
The ezSQL code had made my life much easier, thanks to you and all the contributors! Thanks for all your work.
from ezsql.
Thanks for the quick fix!
from ezsql.
Related Issues (20)
- Tests for JOIN needs fixing
- ezFunctions.php - Errors HOT 4
- Return 500 error while getting more than 100000 rows HOT 1
- Call to undefined function eq() HOT 3
- How to check if connection has worked? HOT 2
- Warning appears on query_prepared method. HOT 1
- Add disconnect function the can be initialized again in loop. HOT 4
- Access a query error rather than an array of errors HOT 1
- try catch with ezsql HOT 4
- Can't insert emoji in utf8mb4 table & column HOT 4
- Could SOMEone speak to ezsql lineage... HOT 1
- SQLite3: table exist while insertting HOT 6
- Deprecated: define(): Declaration of case-insensitive constants is deprecated in xxx\ezsql-3\shared\ezFunctions.php on line 189 HOT 4
- Not compatible with php 8.0 HOT 1
- $db->num_rows not working HOT 6
- lastval throws an error in postgres HOT 2
- Fatal error: Uncaught Error: Call to undefined method ezSQL_mysqli::count() HOT 1
- How to use? HOT 1
- SHOW CHARACTER SET and SET NAMES '' HOT 4
- Argument #2 ($arg) must be passed by reference, value given HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ezsql.