Hi Kiril,

Were you able to get this working , I am also struggling to get the Output 
parameters working with mssql driver .

@Daniel - can i use this http://godoc.org/bitbucket.org/kardianos/rdb



Thanks,
Dharam

On Wednesday, May 7, 2014 at 2:29:48 PM UTC+1, Kiril wrote:
>
> Hi guys, 
> Does anyone know how to execute mysql stored procedure with output 
> parameters?
>
> I use github.com/go-sql-driver/mysql
>
>
> email:= v.Get("email")
>
> pss:= v.Get("pss")
>
>
> var userId string
>
> var errorCode int
>
>
> // Execute the query
>
> rows, err := db.Query("CALL User_Register(?,?,?,?)", email,pss,errorCode, 
> userId)
>
> if err != nil {
>
>      panic(err.Error())
>
> }
>
>
> I do know how to pass regular params and how to get the  field's value from 
> select in one row\rows
>
>
>
> in my case, errorCode and userId will be output.
>
>
>
> thanks in advance
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to