Open freenetwork opened 3 years ago
sqlitis 'select user_id, event_range, ((lower(event_range) AT TIME ZONE 'UTC-4') ::date ):: timestamptz, ((upper(event_range) AT TIME ZONE 'UTC-4') ::date ):: timestamptz, lower(event_range), upper(event_range), lower(event_range) AT TIME ZONE 'UTC-4', upper(event_range) AT TIME ZONE 'UTC-4', EXTRACT(EPOCH FROM ((lower(event_range) AT TIME ZONE 'UTC-4') - (lower(event_range)::date ):: timestamptz) ), EXTRACT(EPOCH FROM ((upper(event_range) AT TIME ZONE 'UTC-4') - (lower(event_range)::date ):: timestamptz) ) from horizon_logs where user_id = 11261;' ERROR: Failed to convert SQL: 'select user_id, event_range, ((lower(event_range) AT TIME ZONE 'UTC-4') ::date ):: timestamptz, ((upper(event_range) AT TIME ZONE 'UTC-4') ::date ):: timestamptz, lower(event_range), upper(event_range), lower(event_range) AT TIME ZONE 'UTC-4', upper(event_range) AT TIME ZONE 'UTC-4', EXTRACT(EPOCH FROM ((lower(event_range) AT TIME ZONE 'UTC-4') - (lower(event_range)::date ):: timestamptz) ), EXTRACT(EPOCH FROM ((upper(event_range) AT TIME ZONE 'UTC-4') - (lower(event_range)::date ):: timestamptz) ) from horizon_logs where user_id = 11261;'
'Table' object has no attribute 'Table'
Please add many functions.
https://dbfiddle.uk/?rdbms=postgres_9.6&fiddle=04645a18d4d4082cf4cee40545473015