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: handle null query parameter value #920

Merged
merged 9 commits into from
Jun 6, 2021

Conversation

steffnay
Copy link
Contributor

@steffnay steffnay commented Jan 31, 2021

Updates _getValue() to check for value, which fixes the bug in handling null query parameter values.

Fixes #915 🦕

@steffnay steffnay requested a review from a team January 31, 2021 02:10
@steffnay steffnay requested a review from a team as a code owner January 31, 2021 02:10
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/nodejs-bigquery API. label Jan 31, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jan 31, 2021
@steffnay steffnay removed the request for review from stephaniewang526 January 31, 2021 02:11
@codecov
Copy link

codecov bot commented Jan 31, 2021

Codecov Report

Merging #920 (4102305) into master (cf4cc57) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 4102305 differs from pull request most recent head fa57ad3. Consider uploading reports for the commit fa57ad3 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #920   +/-   ##
=======================================
  Coverage   98.68%   98.69%           
=======================================
  Files           9        9           
  Lines        7173     7176    +3     
  Branches      442      443    +1     
=======================================
+ Hits         7079     7082    +3     
  Misses         94       94           
Impacted Files Coverage Δ
src/bigquery.ts 99.95% <100.00%> (+<0.01%) ⬆️

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 b703db8...fa57ad3. Read the comment docs.

src/bigquery.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@stephenplusplus stephenplusplus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, small thing.

test/bigquery.ts Outdated Show resolved Hide resolved
@steffnay steffnay merged commit 3bf900a into googleapis:master Jun 6, 2021
gcf-merge-on-green bot pushed a commit that referenced this pull request Jul 21, 2021
🤖 I have created a release \*beep\* \*boop\*
---
## [5.7.0](https://www.github.com/googleapis/nodejs-bigquery/compare/v5.6.0...v5.7.0) (2021-07-21)


### Features

* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#958](https://www.github.com/googleapis/nodejs-bigquery/issues/958)) ([9eab78d](https://www.github.com/googleapis/nodejs-bigquery/commit/9eab78de56d087f3dc756ab2c0974737a80ad43f))


### Bug Fixes

* **deps:** update dependency yargs to v17 ([#954](https://www.github.com/googleapis/nodejs-bigquery/issues/954)) ([28cf08d](https://www.github.com/googleapis/nodejs-bigquery/commit/28cf08d74184b388cd8d18a9622630939c5f99cf))
* extend definition of Query.types for simple named parameters ([#906](https://www.github.com/googleapis/nodejs-bigquery/issues/906)) ([#907](https://www.github.com/googleapis/nodejs-bigquery/issues/907)) ([44e1ac7](https://www.github.com/googleapis/nodejs-bigquery/commit/44e1ac7cf8604d79508316d70a3a98e2953d59f0))
* handle null query parameter value ([#920](https://www.github.com/googleapis/nodejs-bigquery/issues/920)) ([3bf900a](https://www.github.com/googleapis/nodejs-bigquery/commit/3bf900a54a92c0422fa8f3c48480dc430a7d134d))
* promise never returned on table.insert ([#953](https://www.github.com/googleapis/nodejs-bigquery/issues/953)) ([a138347](https://www.github.com/googleapis/nodejs-bigquery/commit/a138347855f74d4e5c889dc42b00992c4a3808a6))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to pass null as a parameter value
2 participants