pgadmin4/web/pgadmin
Surinder Kumar 5dbbd8e638 Resolve problem displaying intervals and timestamps. Fixes #1352
1) No handling for INTERVAL type datetime.
For example: executing query
SELECT INTERVAL '15 minutes';
throws json serialization error, because it returns time in timedelta format which is not handled.

Added support to handle timedelta datetime format in DataTypeJSONEncoder class

2) When we try to get BC dates from database raises ValueError: year is out of range
For eg:
SELECT TIMESTAMP '0044-03-15 10:00:00 BC',
It is because pyscopg2 doesn't handle BC datetime format.

So we have defined our method which type cast the datetime value to string in pyscopg2 overriding default behaviour.

Reference:
http://initd.org/psycopg/docs/advanced.html#type-casting-from-sql-to-python
ccf3693be6/pgcli/pgexecute.py
2016-06-14 17:09:47 +01:00
..
about Copyright updates for 2016. 2016-01-18 14:48:14 +00:00
browser Avoid showing multiple 'Reset Layout' options under file menu. Fixes #1348 2016-06-14 15:01:15 +01:00
dashboard Fix mouse cursor on dashboard quick links. Fixes #1163 2016-06-03 13:10:49 +01:00
help www.pgadmin.org now supports https. 2016-05-21 13:54:22 -04:00
misc Fix file selection on Windows. Fixes #1319 2016-06-10 17:06:22 +01:00
model Adding a background process executor, and observer. 2016-05-13 08:49:51 +05:30
preferences Preferences and user management help button fixes. Fixes #1318 2016-06-14 12:33:03 +01:00
redirects Fix favicon routing 2016-04-14 13:40:01 +01:00
settings Avoid showing multiple 'Reset Layout' options under file menu. Fixes #1348 2016-06-14 15:01:15 +01:00
static Fix query tool horizontal scrolling of results. Fixes #1362 2016-06-14 15:51:14 +01:00
templates Fixes #1243 - Allow to resize the columns of the result table in the 2016-06-02 14:46:58 +05:30
tools Preferences and user management help button fixes. Fixes #1318 2016-06-14 12:33:03 +01:00
translations/fr/LC_MESSAGES Fix i18n for the docking system. 2015-03-03 10:51:29 +00:00
utils Resolve problem displaying intervals and timestamps. Fixes #1352 2016-06-14 17:09:47 +01:00
__init__.py 'pgadmin.utils.storage' has been renamed to 'pgadmin.utils.paths'. Resolved the typo. 2016-05-13 00:36:45 +05:30
messages.pot First round of string review and cleanup. 2016-05-06 13:53:48 +01:00