Skip to content

Array slice expression upper bound misinterpreted as parameter (take 2) #1056

Closed

Description

@roji

Version 3.0.6 included a fix for #946 which no longer recognizes parameter names which start with digits. This is problematic because some ORMs (PetaPOCO, NPoco) generate such parameter names.

Revert the #946 and go back to the pre-3.0 behavior regarding unrecognized parameters. Instead of throwing exceptions for unrecognized parameters, silently ignore them.

Activity

  1. self-assigned this
    on May 3, 2016
  2. added this to the 3.0.7 milestone on May 3, 2016
  3. added a commit that references this issue on May 3, 2016
    8ecc701
  4. Emill commented on May 3, 2016

    @Emill
    Contributor

    Yes I think it's the best to simply ignore them. Colon in front of parameter name is not such a good idea in the first place I think. @ is better.

  5. roji commented on May 3, 2016

    @roji
    MemberAuthor

    I agree, but if we remove support for colons we again have a backwards compatibility issue...

    Ignoring will probably fix all the issues we have here, unless somebody really feels like fixing our SQL parser to understand things like array slices. This is part of the reason I dislike having an SQL parser in the first place (#1042).

    I'll release 3.0.7 today with this fix.

  6. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions