mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix support for the CLOB datatype in EPAS. Fixes #3596
This commit is contained in:
committed by
Dave Page
parent
d6c64e8f11
commit
38ddea038a
@@ -30,6 +30,19 @@ class DataTypeJSONEncoder(json.JSONEncoder):
|
||||
return json.JSONEncoder.default(self, obj)
|
||||
|
||||
|
||||
class ColParamsJSONDecoder(json.JSONDecoder):
|
||||
def decode(self, obj):
|
||||
retval = obj
|
||||
try:
|
||||
retval = json.JSONDecoder.decode(self, obj)
|
||||
if type(retval) == str:
|
||||
retVal = obj
|
||||
except (ValueError, TypeError, KeyError):
|
||||
retval = obj
|
||||
|
||||
return retval
|
||||
|
||||
|
||||
def get_no_cache_header():
|
||||
"""
|
||||
Prevent browser from caching data every time an
|
||||
|
||||
Reference in New Issue
Block a user