comparison Framework/Plugins/IndexBackend.cpp @ 582:8296c6a0238e find-refactoring

ODBC: fixes limit
author Alain Mazy <am@orthanc.team>
date Mon, 21 Oct 2024 17:57:52 +0200
parents a80775ee5eea
children ae7375d38607
comparison
equal deleted inserted replaced
581:a80775ee5eea 582:8296c6a0238e
2214 2214
2215 switch (dialect_) 2215 switch (dialect_)
2216 { 2216 {
2217 case Dialect_MSSQL: 2217 case Dialect_MSSQL:
2218 { 2218 {
2219 if (since > 0) 2219 if (count > 0 || since > 0)
2220 { 2220 {
2221 sql += " OFFSET " + boost::lexical_cast<std::string>(since) + " ROWS "; 2221 sql += " OFFSET " + boost::lexical_cast<std::string>(since) + " ROWS ";
2222 } 2222 }
2223 if (count > 0) 2223 if (count > 0)
2224 { 2224 {