         // query-data-available and statement-complete messages. We should also batch
         // the data-available messages--dispatching an event per-DataRow would be silly.
         internal function executeSimpleQuery(sql:String, handler:IQueryHandler):void {
+        	_queryHandler.handler = handler;
             _broker.send(new Query(sql));
         }
 

    private function handleNotification(msg:NotificationResponse):void {
        dispatchEvent(new NotificationEvent(msg.condition, msg.notifierPid));
    }
}
            _msgDispatcher = dispatcher;
            var authHandler:IFEBEMessageHandler = new AuthenticationHandler(dispatcher);
            authHandler.addEventListener(AuthenticationHandler.AUTHENTICATED, handleAuth);
            _handlers = [ authHandler ];
            _broker.send(new StartupMessage(_params));
        }

        private function handleAuth(e:Event):void {
        	_connecting = false;
        	_connected = true;
        	_queryHandler = new QueryMessageHandler(_msgDispatcher);
        	_rfqHandler = new ReadyForQueryHandler(_msgDispatcher);
        	var noticeHandler:NoticeHandler = new NoticeHandler(_msgDispatcher);
        	var notifHandler:NotificationHandler = new NotificationHandler(_msgDispatcher);
        	_handlers = [ _queryHandler, noticeHandler, notifHandler, _rfqHandler  ];
        }
		

