[teradata] Move limit helper methods out to adapter
[teradata] Fix :primary_key type mapping, map to not null int