hasura / hasura/graphql-engine

Insert mutation with specific numbers in text columns results in asterisks before decimal point

Open
#9,887 0 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version:
Current server version: v2.20.0

### What is the current behaviour?

I'm doing an insert mutation in hasura api to a text field of this:

"input": "18895880622.8386"

Where the input column is of type text.

This results in ************8386 in the table for this column.

Seems to be repeatable and quite specific to this number.

### What is the expected behaviour?

should insert text "18895880622.8386"

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the insert mutation against a text column on server version v2.20.0 using the value "18895880622.8386". Trace the mutation from the Hasura API into storage and verify that the table contains the exact input string rather than asterisks before the decimal point.

Written by the indexing model from the issue text.

Assessment

Domain
api, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.