Skip to content

Commit

Permalink
Change connection string into localhost, remove useless unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Diyan committed May 19, 2011
1 parent e6b3b4b commit 935e206
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions product/roundhouse.tests.integration/MySQLDatabaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,42 +19,13 @@ public void Debug_migrator()
{
@"/db=TestRoundhousE",
@"/f=..\..\db\MySQL\TestRoundhousE",
@"/cs=server=tcdev02;uid=username;Password=password;database=TestRoundhousE;",
@"/cs=server=localhost;uid=username;Password=password;database=TestRoundhousE;",
@"/dt=roundhouse.databases.mysql.MySqlDatabase, roundhouse.databases.mysql",
@"/schemaname=TestRoundhousE"
};

Log4NetAppender.configure();
Program.run_migrator(Program.set_up_configuration_and_build_the_container(args));
}

private const string SqlWithDelimiterKeyword = @"
DROP PROCEDURE IF EXISTS AddSupportAction;
DELIMITER $$
CREATE PROCEDURE AddSupportAction(IN _reservationtID INT, IN _typeCode VARCHAR(45), IN _info VARCHAR(8192), IN _type VARCHAR(100))
BEGIN
DECLARE actionIdInProc INT;
INSERT INTO ACTION (Type, TimeStamp, Info)
VALUES (_type, now(), _info);
SET actionIdInProc = LAST_INSERT_ID();
INSERT INTO SUPPORT_ACTION (ActionID, ReservationID, TypeCode)
VALUES (actionIDInProc, _reservationtID, _typeCode);
SELECT actionIdInProc;
END;
$$";

[Test]
public void Debug_StatementSplitter()
{
var databaseMigrator = new DefaultDatabaseMigrator(new MySqlDatabase(), null, new ConsoleConfiguration(null));
var lines = databaseMigrator.get_statements_to_run(SqlWithDelimiterKeyword);
}
}
}

0 comments on commit 935e206

Please sign in to comment.