public Savepoint ( ) : |
||
리턴 |
public virtual void TestSavepint() { var sql = " savepoint 123e123e"; var parser = new MySqlMtsParser(new MySqlLexer(sql)); var savepoint = parser.Savepoint(); var output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT 123e123e", output); Assert.AreEqual("123e123e", savepoint.Savepoint.IdText); sql = " savepoint SAVEPOINT"; parser = new MySqlMtsParser(new MySqlLexer(sql)); savepoint = parser.Savepoint(); output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT SAVEPOINT", output); Assert.AreEqual("SAVEPOINT", savepoint.Savepoint.IdText); sql = " savepoInt `select`"; parser = new MySqlMtsParser(new MySqlLexer(sql)); savepoint = parser.Savepoint(); output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT `select`", output); Assert.AreEqual("`select`", savepoint.Savepoint.IdText); }
public virtual void TestSavepint() { var sql = " savepoint 123e123e"; var parser = new MySqlMtsParser(new MySqlLexer(sql)); var savepoint = parser.Savepoint(); var output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT 123e123e", output); Assert.AreEqual("123e123e", savepoint.Savepoint.IdText); sql = " savepoint SAVEPOINT"; parser = new MySqlMtsParser(new MySqlLexer(sql)); savepoint = parser.Savepoint(); output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT SAVEPOINT", output); Assert.AreEqual("SAVEPOINT", savepoint.Savepoint.IdText); sql = " savepoInt `select`"; parser = new MySqlMtsParser(new MySqlLexer(sql)); savepoint = parser.Savepoint(); output = Output2MySql(savepoint, sql); Assert.AreEqual("SAVEPOINT `select`", output); Assert.AreEqual("`select`", savepoint.Savepoint.IdText); }