SQL: add warning for mismatch in provided and written table name (GH7815)