Menu

#2 Passing negative parameters with \rpc

v2.1
open
5
2004-04-11
2004-04-11
No

How to pass negative values to stored procedures using
the \rpc command? The
negative value is declared as a float parameter in the
stored proc.

I tried the following ways:

\rpc proc -1.0 2.2 ...
\rpc proc (-1.0) 2.2 ...
\rpc proc -d -1.0 2.2 ...

Discussion

  • Michael Peppler

    Michael Peppler - 2004-04-11

    Logged In: YES
    user_id=1014343

    One solution is to use the explicit form:

    \rpc proc @p1=-1 @p2=2 ...

     
  • Michael Peppler

    Michael Peppler - 2004-04-11
    • assigned_to: nobody --> mpeppler
     

Log in to post a comment.

MongoDB Logo MongoDB