• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 9107848273
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 16 May 2024 07:31AM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2024 06:55AM UTC coverage: 72.774% (+0.004%) from 72.77%
9107848273

push

github

web-flow
Add typmod validation in [VAR]BINARY input function (#2570)

[VAR]BINARY input function does not check if input string is bigger than the
desired typmod. This is problematic as it is possible to insert a binary value
larger than typmod into a column. Although, the issue is not there for normal
inserts into a table as there exists typmod coercion functions for binary and
varbinary datatypes which are always called along with input function to adjust
the value length according to given typmod.

But the issue exists for logical replication and dump/restore in which the value
is coming from a remote server possibly with a different typmod. In these cases
typmod coercion functions are not called so no checks are performed on size of
input value.

To fix the issue, this commit adds a check in the [VAR]BINARY input function to
validate input string with typmod and throw error if the value is larger than typmod
similar to [VAR]CHAR datatypes.

Task: BABEL-4956
Signed-off-by: Rishabh Tanwar <ritanwar@amazon.com>

9 of 9 new or added lines in 1 file covered. (100.0%)

41814 of 57457 relevant lines covered (72.77%)

97675.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9107848273.1 16 May 2024 07:31AM UTC 114
72.77
GitHub Action Run
Source Files on build 9107848273
  • Tree
  • List 114
  • Changed 64
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9107848273
  • 441015dd on github
  • Prev Build on BABEL_4_X_DEV (#9106868047)
  • Next Build on BABEL_4_X_DEV (#9111092279)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc