Skip to Content.
Sympa Menu

grouper-dev - numParameters in subject api is now optional

Subject: Grouper Developers Forum

List archive

numParameters in subject api is now optional


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Grouper Dev <>
  • Subject: numParameters in subject api is now optional
  • Date: Tue, 23 Sep 2008 02:34:48 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hey,

 

https://bugs.internet2.edu/jira/browse/MCO-19

 

This makes configuring JDBC subjects a little easier:

 

There is very little chance that the number of question marks does not equal the numParameters. This param is common to get messed up, so it should be optional, and default to the number of question marks.

 

This is fixed. numParameters is optional, and is recommended to be removed from existing configs (to not cause errors when the queries are tweaked in the future).

 

change from this:

 

    <search>

      <searchType>searchSubject</searchType>

      <param>

        <param-name>numParameters</param-name>

        <param-value>1</param-value>

      </param>

      <param>

        <param-name>sql</param-name>

        <param-value>select * from Subject where (subjectId=?)</param-value>

       </param>

    </search>

 

 

To this:

 

    <search>

      <searchType>searchSubject</searchType>

      <param>

        <param-name>sql</param-name>

        <param-value>select * from Subject where (subjectId=?)</param-value>

       </param>

    </search>

 

Let me know if there are any issues, I put this in subject api 0.4.0

 

Kind regards,

Chris



  • numParameters in subject api is now optional, Chris Hyzer, 09/23/2008

Archive powered by MHonArc 2.6.16.

Top of Page