Message-ID: From: "davecramer (@davecramer)" To: "postgresql-interfaces/psqlodbc" Date: Tue, 24 Sep 2024 13:31:46 +0000 Subject: Re: [postgresql-interfaces/psqlodbc] issue #43: syntax error at or near "ROWS" In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 2371288051 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 43 X-GitHub-Repo: postgresql-interfaces/psqlodbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/postgresql-interfaces/psqlodbc/issues/43#issuecomment-2371288051 Content-Type: text/plain; charset=utf-8 OK, I was able to replicate your problem. Seems the issue is that only prepared statements will allow you to bind parameters. If I run your code the backend log looks like `SELECT "Id" FROM ServerSession ORDER BY "Begin" ASC OFFSET $1::int4 ROWS FETCH FIRST $2::int4 ROWS ONLY` You can see the parameters were not bound. Dave