console: allow entering big int values (close #3667) (#4775)

This commit is contained in:
soorajshankar 2020-05-29 14:40:02 +05:30 committed by GitHub
parent b2fd57a8e2
commit d2aac3732a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -63,13 +63,13 @@ Read more about the session argument for computed fields in the [docs](https://h
- server: fix explain queries with role permissions (fix #4816)
- server: compile with GHC 8.10.1, closing a space leak with subscriptions. (close #4517) (#3388)
- server: fixes an issue where introspection queries with variables would fail because of caching (fix #4547)
- server: avoid loss of precision when passing values in scientific notation (fix #4733)
- server: fix mishandling of GeoJSON inputs in subscriptions (fix #3239)
- server: fix importing of allow list query from metadata (fix #4687)
- server: flush log buffer during shutdown (#4800)
- server: fix edge case with printing logs on startup failure (fix #4772)
- console: allow entering big int values in the console (close #3667) (#4775)
- console: avoid count queries for large tables (#4692)
- console: add read replica support section to pro popup (#4118)
- console: allow modifying default value for PK (fix #4075) (#4679)

View File

@ -1,6 +1,6 @@
import Endpoints, { globalCookiePolicy } from '../../../../Endpoints';
import requestAction from 'utils/requestAction';
import { Integers, Reals } from '../constants';
import { Reals } from '../constants';
import {
showErrorNotification,
@ -39,10 +39,7 @@ const insertItem = (tableName, colValues) => {
Object.keys(colValues).map(colName => {
const colSchema = columns.find(x => x.column_name === colName);
const colType = colSchema.data_type;
if (Integers.indexOf(colType) > 0) {
insertObject[colName] =
parseInt(colValues[colName], 10) || colValues[colName];
} else if (Reals.indexOf(colType) > 0) {
if (Reals.indexOf(colType) > 0) {
insertObject[colName] =
parseFloat(colValues[colName], 10) || colValues[colName];
} else if (colType === 'boolean') {