The Wayback Machine - https://web.archive.org/web/20201109042053/https://github.com/ezSQL/ezsql/pull/191
Skip to content
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

Fix query prepared empty array #191

Open
wants to merge 3 commits into
base: master
from

Conversation

@maltrana
Copy link

@maltrana maltrana commented Jun 4, 2020

When we send a prepared_query with an empty array we get an error.

issue #190

To Reproduce
$db->query_prepared( 'select id from table' , []);

Expected behavior
Return result without errors

Environment:
EZSQL Version : 4.0.10
PHP Version: 7.3
SQL Driver: mysql

Changes:

  • if statment added in ez_mysqi.php
  • test added in mysqliTest.php
@codecov-commenter
Copy link

@codecov-commenter codecov-commenter commented Jun 4, 2020

Codecov Report

Merging #191 into master will increase coverage by 0.00%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #191   +/-   ##
=========================================
  Coverage     85.04%   85.05%           
- Complexity      809      811    +2     
=========================================
  Files            14       14           
  Lines          2033     2034    +1     
=========================================
+ Hits           1729     1730    +1     
  Misses          304      304           
Impacted Files Coverage Δ Complexity Δ
lib/Database/ez_mysqli.php 95.09% <93.75%> (+0.02%) 86.00 <0.00> (+2.00)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c843017...74e4b18. Read the comment docs.

@techno-express
Copy link
Contributor

@techno-express techno-express commented Jun 4, 2020

What's up with the spacing? Not PSR-2 in ez_mysqi.php modification.

@maltrana
Copy link
Author

@maltrana maltrana commented Jun 4, 2020

I'm sorry

Corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.