mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-20 06:58:39 +03:00
parent
b2fd57a8e2
commit
d2aac3732a
@ -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)
|
||||
|
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user