Skip to content

Update PostgresStorageAdapter.js #2094

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

Merged
merged 1 commit into from
Jun 27, 2016
Merged

Update PostgresStorageAdapter.js #2094

merged 1 commit into from
Jun 27, 2016

Conversation

vitaly-t
Copy link
Contributor

this isn't just a simplification, but also fixing a bug: the result of count(*) is always returned as a string that needs conversion, not as a number, because it is 64-bit, and all 64-bit numbers are returned as strings. So, the previous === 0 would have never worked.

this isn't just a simplification, but also fixing a bug: the result of `count(*)` is always returned as a string that needs conversion, not as a number, because it is 64-bit, and all 64-bit numbers are returned as strings. So, the previous `=== 0` would have never worked.
@codecov-io
Copy link

codecov-io commented Jun 18, 2016

Current coverage is 92.07%

Merging #2094 into master will not change coverage

@@             master      #2094   diff @@
==========================================
  Files            93         93          
  Lines          6777       6777          
  Methods        1193       1194     +1   
  Messages          0          0          
  Branches       1433       1433          
==========================================
  Hits           6240       6240          
  Misses          537        537          
  Partials          0          0          

Powered by Codecov. Last updated by 006540c...8f0dfb1

@flovilmart flovilmart merged commit 1f2f831 into parse-community:master Jun 27, 2016
@vitaly-t vitaly-t deleted the patch-2 branch June 27, 2016 05:36
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 15, 2017
this isn't just a simplification, but also fixing a bug: the result of `count(*)` is always returned as a string that needs conversion, not as a number, because it is 64-bit, and all 64-bit numbers are returned as strings. So, the previous `=== 0` would have never worked.
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 16, 2017
this isn't just a simplification, but also fixing a bug: the result of `count(*)` is always returned as a string that needs conversion, not as a number, because it is 64-bit, and all 64-bit numbers are returned as strings. So, the previous `=== 0` would have never worked.
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.

3 participants