Infinity timestamp format preventing data grid editing
See original GitHub issueSystem information:
- MacOS Catalina v10.15.7
- DBeaver v21.0.5.202105160657
Connection specification:
- Postgres 11.11
- PostgresSQL JDBC Driver
- Do you use tunnels or proxies (SSH, SOCKS, etc)? No
Describe the problem you’re observing:
Trying to edit column in data grid but complains about +Infinity formatting no matter what field I edit
Error synchronizing data with database
Reason:
SQL Error [22007]: ERROR: invalid input syntax for type timestamp: "+Infinity"
The column it’s complaining about is defined as TIMESTAMP DEFAULT ('infinity'::timestamp at time zone 'utc')
I used to be able to edit and save cells no problem
Steps to reproduce, if exist:
- Select * from any table that has column defined like that
- Edit any column in the resulting data grid
Include any warning/errors/backtraces from the logs
eclipse.buildId=unknown
java.version=11.0.8
java.vendor=AdoptOpenJDK
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/pdesuza/.eclipse_keyring
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -keyring /Users/pdesuza/.eclipse_keyring
org.jkiss.dbeaver.model
Error
Thu May 27 18:56:16 PDT 2021
ERROR: invalid input syntax for type timestamp: "+Infinity"
org.postgresql.util.PSQLException: ERROR: invalid input syntax for type timestamp: "+Infinity"
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:132)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementImpl.execute(JDBCPreparedStatementImpl.java:261)
at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementImpl.executeStatement(JDBCPreparedStatementImpl.java:205)
at org.jkiss.dbeaver.model.impl.data.ExecuteBatchImpl.executeStatement(ExecuteBatchImpl.java:304)
at org.jkiss.dbeaver.model.impl.data.ExecuteBatchImpl.processBatch(ExecuteBatchImpl.java:172)
at org.jkiss.dbeaver.model.impl.data.ExecuteBatchImpl.execute(ExecuteBatchImpl.java:81)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister$DataUpdaterJob.executeStatements(ResultSetPersister.java:811)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister$DataUpdaterJob.lambda$1(ResultSetPersister.java:697)
at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:169)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister$DataUpdaterJob.executeStatements(ResultSetPersister.java:696)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister$DataUpdaterJob.run(ResultSetPersister.java:634)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister.execute(ResultSetPersister.java:450)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetPersister.applyChanges(ResultSetPersister.java:174)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer.saveChanges(ResultSetViewer.java:3878)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer.applyChanges(ResultSetViewer.java:3851)
at org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer.doSave(ResultSetViewer.java:2200)
at org.jkiss.dbeaver.ui.editors.sql.SQLEditor$SaveJob.run(SQLEditor.java:3906)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Configuring Data Grid Caches - Red Hat Customer Portal
You can configure caches declaratively, in XML or JSON format, according to the Data Grid schema. Declarative cache configuration has the following advantages ......
Read more >Material-UI Data Grid - Filtering by Date with UNIX Timestamp
EDIT : I tried formatting the date as MM/DD/YYYY & the filter still fails. See screenshots below - there should be multiple dates...
Read more >DataGrid - How to remove local time adjustment for date ...
DataGrid - How to remove local time adjustment for date columns (DevExtreme's two date parsers). -> Solved Year Calendar Selector.
Read more >Data Grid - Editing - MUI X
The following demo shows how to prevent the user from exiting edit mode when clicking outside of a cell. To do this, the...
Read more >Advanced Settings | Kibana Guide [8.5] - Elastic
Formatted timestamps must adapt to the interval between measurements. ... Set this property to false to prevent the filter editor and KQL autocomplete...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You’re awesome! Thank you so much for your efforts.
Hello,
This fix will go live when 21.1.1 is released. It usually happens on Mondays, so somewhere in the span of 24 hours 😃