pgshiping / jforum2

Automatically exported from code.google.com/p/jforum2
Other
0 stars 0 forks source link

[patch] SQL Error in "Top Downloads" page when using SQL Server #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install JForum against a SQL Server database
2. Try to load the "Top Downloads" page

What is the expected output? What do you see instead?
Should display list of top downloads; instead shows a SQL error.

Please provide any additional information below.

The problem is that SQL Server doesn't support the "LMIT m,n" operator. In this 
case, it can be fixed by using SQL Server's "TOP (n)" syntax instead.

Attached is a patch which adds the necessary statement to 
src/main/config/database/sqlserver/sqlserver.sql.

Original issue reported on code.google.com by max.b...@gmail.com on 3 Feb 2012 at 4:00

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in revision r192

Original comment by andow...@gmail.com on 1 Jun 2012 at 11:02

GoogleCodeExporter commented 8 years ago
Cool!

Original comment by max.b...@gmail.com on 1 Jun 2012 at 1:36