lecosson / assql

Automatically exported from code.google.com/p/assql
0 stars 0 forks source link

MySQLService error handler method accepts incorrect number of arguments #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. MySqlService Example
2. Change the select statement to access a table that does not exist
3. run the example

What is the expected output? What do you see instead?
an appropriate error message or exception

What version of the product are you using? On what operating system?
beta 2.7

Please provide any additional information below.ArgumentError: Error #1063:
Argument count mismatch on com.maclema.mysql::MySqlService/handleError().
Expected 1, got 2.
    at
mx.rpc::AsyncResponder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\A
syncResponder.as:95]
    at com.maclema.mysql::MySqlToken/handleError()[D:\My
Documents\Development\Flex Builder 3\assql\com\maclema\mysql\MySqlToken.as:105]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ErrorHandler()[D:\My Documents\Development\Flex Builder
3\assql\com\maclema\mysql\ErrorHandler.as:16]
    at QueryHandler/handleErrorPacket()[D:\My Documents\Development\Flex
Builder 3\assql\com\maclema\mysql\QueryHandler.as:48]
    at QueryHandler/handleNextPacket()[D:\My Documents\Development\Flex
Builder 3\assql\com\maclema\mysql\QueryHandler.as:150]
    at QueryHandler/newPacket()[D:\My Documents\Development\Flex Builder
3\assql\com\maclema\mysql\QueryHandler.as:32]
    at DataHandler/pushPacket()[D:\My Documents\Development\Flex Builder
3\assql\com\maclema\mysql\DataHandler.as:48]
    at com.maclema.mysql::Connection/checkForPackets()[D:\My
Documents\Development\Flex Builder 3\assql\com\maclema\mysql\Connection.as:476]
    at com.maclema.mysql::Connection/onSocketData()[D:\My
Documents\Development\Flex Builder 3\assql\com\maclema\mysql\Connection.as:449]

Original issue reported on code.google.com by daniel.m...@gmail.com on 9 Aug 2008 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 11 Aug 2008 at 11:03

GoogleCodeExporter commented 9 years ago

Original comment by macl...@gmail.com on 14 Aug 2008 at 5:51

GoogleCodeExporter commented 9 years ago
Fix:
in MySqlService.as, change the following line:
private function handleError(info:Object):void {

to:
private function handleError(info:Object, token:Object=null):void {

and it should work

Original comment by wimfleer...@gmail.com on 29 Oct 2008 at 7:57