public void npgsql_test_pagination_strings() { var m = new PostgresProvider(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} offset @{1}", PagedSqlStatement.TakeParameterName,PagedSqlStatement.SkipParameterName), sel); }
public override string EscapeName(string s) { return(PostgresProvider.EscapeIdentifier(s)); }