Cleanup of the mysql_execute_command Function

Registered by Padraig O'Sullivan on 2009-07-30

Within mysql_execute_command(), there is a large switch statement which determines how to execute a command based on its type. This task involves creating an abstract base class to represent a command. Then, each separate command can inherit from this base class and provide its own implementation. The idea is that the giant switch statement will be replaced by 1 simple statement:

command->execute();

The base class has already been created and pushed to trunk. It is declared in the command.h header file under the drizzled::command namespace. 2 command implementations have been completed and these can be seen under the command directory. There is a separate implementation file for each command.

Blueprint information

Status:
Complete
Approver:
Padraig O'Sullivan
Priority:
High
Drafter:
Padraig O'Sullivan
Direction:
Approved
Assignee:
Padraig O'Sullivan
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon bell
Started by
Padraig O'Sullivan on 2009-07-30
Completed by
Padraig O'Sullivan on 2009-08-28

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.