Mohammed Houssani
ERROR odbclog: Invalid parameter: No replaceable variables found in query ''
[resource id] = DBMonitor.InvalidParameterError
have you define "key fields" for your query?
how odbclog module works?
we have a query for events selection
but events are the infinite stream
we call a query, fetch all events and pause collector for a short time
next run and we have to fetch only NEW events
how to distinguish them from OLD?
and how to keep DBA happy?
we need something in data with predictable behaviour to be used as marker OLD/NEW
usually you have some fields with monotonic behaviour - date or number fields
for example
BigLog table (Id bigint identity, eventbody text)
base query is a select Id, eventbody from BigLog
but Id is autoincrement field
we define Id as a keyfield and slightly modify query with predicate like
where Id > :Id:
":Id:" - placeholder to be replaced by odbclog on every run with maximum value from previous run