Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

fix: handle null query parameter value - #920

Merged
steffnay merged 9 commits into
googleapis:masterfrom
steffnay:null-param
Jun 6, 2021
Merged

fix: handle null query parameter value#920
steffnay merged 9 commits into
googleapis:masterfrom
steffnay:null-param

Conversation

@steffnay

@steffnay steffnay commented Jan 31, 2021

Copy link
Copy Markdown
Contributor

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

Fixes #915 🦕

@steffnay
steffnay requested review from a team and stephaniewang526 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

codecov Bot commented Jan 31, 2021

Copy link
Copy Markdown

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.

Comment thread src/bigquery.ts Outdated

@stephenplusplus stephenplusplus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry, small thing.

Comment thread test/bigquery.ts Outdated
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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