MSSQL rows limit/offset via TOP or OFFSET ... FETCH NEXT ... ROWS

This commit is contained in:
Sergey Kurt 2017-03-14 11:13:56 +03:00
parent e2f32e746e
commit cbdbe4891a
9 changed files with 54 additions and 6 deletions
bdb/drivers

View file

@ -78,6 +78,11 @@ func (p *PostgresDriver) UseLastInsertID() bool {
return false
}
// UseTopClause returns false to indicate PSQL doesnt support SQL TOP clause
func (m *PostgresDriver) UseTopClause() bool {
return false
}
// TableNames connects to the postgres database and
// retrieves all table names from the information_schema where the
// table schema is schema. It uses a whitelist and blacklist.