Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAGE_SIZE must be higher than max row count in SQL Server #1

Open
unixmonkey opened this issue May 21, 2010 · 0 comments
Open

PAGE_SIZE must be higher than max row count in SQL Server #1

unixmonkey opened this issue May 21, 2010 · 0 comments

Comments

@unixmonkey
Copy link

Thanks, this is just what I needed, but one note; on SQL Server as the production DB (at least in version 2005), if there are more records in a single table than the PAGE_SIZE is set to, The next loop will try to start over, and the primary_key constraint will cause it to choke by trying to re-insert the record with an ID of 1. This has to do with the limited support for LIMIT and OFFSET in SQL server. Raising the LIMIT to over the limit of the highest row count works fine. Just thought you should know, maybe put it in the readme, or check if ProductionModelClass.connection.adapter_name == 'SQLServer'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant