         public function getDecoder(oid:int):IPGTypeDecoder {
             if (oid in _decoders) {
                 return _decoders[oid];
+            } else if (_defaultDecoder) {
+                return _defaultDecoder;
             } else {
                 throw new CodecError("Could not find suitable decoder", CodecError.DECODE, null, oid);
             }


        /**
         * Return the encoder for the given Class
         * @param value for which to find encoder
         * @return registered encoder
         * @throws org.postgresql.CodecError if no encoder is registered for the given Class

        public function getEncoder(clazz:Class):IPGTypeEncoder {
            if (clazz in _encoders) {
                return _encoders[clazz];
            } else if (_defaultEncoder) {
                return _defaultEncoder;
            } else {
                throw new CodecError("Could not find suitable encoder", CodecError.ENCODE, null, Oid.UNSPECIFIED, clazz);
            }
