コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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);
        }