private static void VerifyMySqlParamInfo(MySqlVersion mySqlVersion, MySqlType mySqlType, MySqlParameterInfo expected) { var actual = mySqlType.GetSqlParameterInfo(mySqlVersion); Assert.AreEqual(expected.MySqlDbType, actual.MySqlDbType); Assert.AreEqual(expected.Size, actual.Size); Assert.AreEqual(expected.Precision, actual.Precision); Assert.AreEqual(expected.Scale, actual.Scale); }
private static void VerifyMySqlType(MySqlVersion mySqlVersion, Column column, MySqlDbType mySqlDbType, string sqlString, byte precision, byte scale) { var expectedParamInfo = new MySqlParameterInfo(mySqlDbType, default(int?), precision, scale); VerifyMySqlType(mySqlVersion, column, expectedParamInfo, sqlString); }
private static void VerifyMySqlType(MySqlVersion mySqlVersion, Column column, MySqlParameterInfo expectedParamInfo, string expectedSqlString) { var mySqlType = column.GetMySqlType(); VerifyMySqlParamInfo(mySqlVersion, mySqlType, expectedParamInfo); Assert.AreEqual(expectedSqlString, mySqlType.GetDataTypeSql(mySqlVersion)); }
private static void VerifyMySqlType(MySqlVersion mySqlVersion, Column column, MySqlDbType mySqlDbType, int size, string sqlString) { var expectedParamInfo = new MySqlParameterInfo(mySqlDbType, size, default(byte?), default(byte?)); VerifyMySqlType(mySqlVersion, column, expectedParamInfo, sqlString); }