Bugfix SQL bug invalid input syntax for type numeric