FIX integer column names for older sqlalchemy version GH6340, GH7330
Merge pull request #7456 from jorisvandenbossche/sql-fix7330

FIX integer column names for older sqlalchemy version GH6340, GH7330