Added support for stored procedures/functions to MySQL:
authorMax Semenik <maxsem@users.mediawiki.org>
Tue, 27 Dec 2011 12:29:36 +0000 (12:29 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Tue, 27 Dec 2011 12:29:36 +0000 (12:29 +0000)
commit6b7317c91fb949e3f0af0039e0f99f15d9c60c91
tree2c78ed7dd9ca62828c949bd2b4eaaef838258a39
parentadc04f1a62082fe586d01573f3bbb38f5aa24c70
Added support for stored procedures/functions to MySQL:
* Refactored DatabaseBase::sourceStream(), made it possible for descendant classes to alter its behaviour w/o having to redo it completely like Oracle does.
* MySQL class now supports specifying DELIMITER.
* Thrown away the mess of catering for double semicolon. If it's a problem, fix your .sql files!
* Haven't actually touched Oracle.
* Tests!
includes/db/Database.php
includes/db/DatabaseMysql.php
includes/db/DatabasePostgres.php
tests/phpunit/data/db/mysql/functions.sql [new file with mode: 0644]
tests/phpunit/data/db/postgres/functions.sql [new file with mode: 0644]
tests/phpunit/includes/db/DatabaseTest.php