simple fix for wrong type detection of SQLCustomTypes