[jira] Created: (JDBI-9) Expand array arguments automatically

View: New views
2 Messages — Rating Filter:   Alert me  

[jira] Created: (JDBI-9) Expand array arguments automatically

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Expand array arguments automatically
------------------------------------

                 Key: JDBI-9
                 URL: http://jira.codehaus.org/browse/JDBI-9
             Project: jDBI
          Issue Type: Improvement
          Components: Core
            Reporter: Martin Traverso
            Assignee: Brian McCallister


It would be very convenient if jdbi expanded array arguments automagically.

If a query looks like:

    select * from table where id in :id

and an array with 5 elements is is bound to "id", jdbi should translate the statement into:

    select * from table where id in (?,?,?,?,?)

There may be some potential issues with positional parameters that would need to be worked out, but I think this approach should work.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


[jira] Updated: (JDBI-9) Expand array arguments automatically

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/JDBI-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian McCallister updated JDBI-9:
---------------------------------

    Fix Version/s: Pony

Most asked for feature... ever

> Expand array arguments automatically
> ------------------------------------
>
>                 Key: JDBI-9
>                 URL: http://jira.codehaus.org/browse/JDBI-9
>             Project: jDBI
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Martin Traverso
>            Assignee: Brian McCallister
>             Fix For: Pony
>
>
> It would be very convenient if jdbi expanded array arguments automagically.
> If a query looks like:
>     select * from table where id in :id
> and an array with 5 elements is is bound to "id", jdbi should translate the statement into:
>     select * from table where id in (?,?,?,?,?)
> There may be some potential issues with positional parameters that would need to be worked out, but I think this approach should work.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email