[Issue 8163] back-sql: broken handling of deprecated attributes