示例#1
0
 public void mysql_test_pagination_strings()
 {
     var m = new MySqlProvider(Config.SqlServerProviderName);
     string cnt;
     string sel;
     m.MakePaged("select * from test",out sel,out cnt);
     Assert.Equal("select count(*) from test",cnt);
     Assert.Equal(string.Format("select * from test limit @{0},@{1}",PagedSqlStatement.SkipParameterName,PagedSqlStatement.TakeParameterName),sel);
 }
示例#2
0
 public override string EscapeName(string s)
 {
     return(MySqlProvider.EscapeIdentifier(s));
 }