 package org.postgresql.db {
-
+    import org.postgresql.codec.encode.BoolIn;
+    import org.postgresql.codec.encode.TimestamptzIn;
+    import org.postgresql.codec.encode.Float8In;
+    import org.postgresql.codec.encode.TextIn;
     import org.postgresql.codec.encode.Int4In;
     import org.postgresql.Oid;
     import org.postgresql.PgURL;

            _codecFactory.registerDecoder(Oid.TEXT, new TextOut());

            _codecFactory.registerEncoder(int, new Int4In());
            // Technically, this isn't right, especially for binary, but
            // it's at least moderately useful and better than the alternative of
            // CodecErrors everywhere. This typically occurs if someone is selecting
            // text literals: e.g., "SELECT 'foo'".
            _codecFactory.registerDecoder(Oid.UNKNOWN, new TextOut());
        }

        public function createConnection(url:String, user:String, password:String):IConnection {

        private var _codecFactory:CodecFactory;

        public function ConnectionFactory() {
            _codecFactory = new CodecFactory();

            _codecFactory.registerDecoder(Oid.INT2, new IntOut());
