sqltypes.Numeric: _PGNumericNoBind,
sqltypes.Float: _PGNumeric,
JSON: _PGJSON,
+ sqltypes.JSON: _PGJSON
}
)
return exclusions.closed()
+ @property
+ def json_array_indexes(self):
+ """"target platform supports numeric array indexes
+ within a JSON structure"""
+
+ return self.json_type
+
@property
def precision_numerics_general(self):
"""target backend has general support for moderately high-precision
"r2"
)
+ @config.requirements.json_array_indexes
def test_crit_simple_int(self):
name = self.tables.data_table.c.name
col = self.tables.data_table.c['data']
"postgresql >= 9.3"
])
+ @property
+ def json_array_indexes(self):
+ return self.json_type + fails_if("+pg8000")
+
@property
def datetime_literals(self):
"""target dialect supports rendering of a date, time, or datetime as a