Commit f59b59b
authored
Fix an issue of adding OFFSET keyword for legacy SQL Server vresions
I was getting the following exception when trying to access legacy SQL Server 2008 R2 database:
pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near 'OFFSET'. (102) (SQLExecDirectW)")
I only added one more condition before adding the OFFSET keyword.1 parent d7239a9 commit f59b59b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments