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

Ignore limit option for binary type in postgres #1768

Merged
merged 1 commit into from
May 9, 2020
Merged

Ignore limit option for binary type in postgres #1768

merged 1 commit into from
May 9, 2020

Conversation

MasterOdin
Copy link
Member

Closes #1736

The binary type (bytesa) in postgres does not accept a limit option and will throw an error if attempting to use one (e.g. bytesa (32)). This fixes it so that the limit clause is properly ignored for it.

The binary type (bytesa) in postgres does not accept a limit
option and will throw an error if attempting to use one (e.g.
bytesa (32)). This fixes it so that the limit clause is
properly ignored for it.

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@codecov
Copy link

codecov bot commented May 9, 2020

Codecov Report

Merging #1768 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1768   +/-   ##
=========================================
  Coverage     78.30%   78.30%           
  Complexity     2042     2042           
=========================================
  Files            57       57           
  Lines          5825     5827    +2     
=========================================
+ Hits           4561     4563    +2     
  Misses         1264     1264           
Impacted Files Coverage Δ Complexity Δ
src/Phinx/Db/Adapter/PostgresAdapter.php 93.85% <100.00%> (+0.01%) 229.00 <0.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 5a9ebbe...c41663c. Read the comment docs.

@dereuromark dereuromark merged commit e341bf7 into cakephp:master May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

binary for postgres with limit option throws exception
2 participants