Bugfix getSQLDeclaration