Menu

#6 API calls with varargs parameters fail

SVN
open
Functional (6)
3
2007-05-09
2007-05-09
No

API calls that use variable argument lists for parameters (such as dbExecute() and dbQuery()) do not work. This is a limitation of BeanShell.

Workaround:

Use the Java API calls instead of the BeanShell versions. For example:

rs = dbExecute("SELECT * FROM table WHERE id = ?", id);

becomes:

rs = ZKDStatic.dbExecute("SELECT * FROM table WHERE id = ?", id);

Discussion

  • Scott Duensing

    Scott Duensing - 2007-05-09

    Logged In: YES
    user_id=271380
    Originator: YES

    This issue is being tracked on the BeanShell fork issue tracker:

    http://code.google.com/p/beanshell2/issues/detail?id=13

     
  • Scott Duensing

    Scott Duensing - 2007-05-09
    • priority: 5 --> 3
     

Log in to post a comment.

MongoDB Logo MongoDB