https://issues.apache.org/bugzilla/show_bug.cgi?id=45251

           Summary: DBD MySQL driver doesn't support multiple resultsets
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When calling stored procedure returning multiple result sets, I am getting this
error from MySQL,

   ROCEDURE get_all_by_username can't return a result set in the given context

MySQL needs flag CLIENT_MULTI_RESULTS but there is no way to set this flag in
DBDParam. I added following change to apr_dbd_mysql.c so it takes any number
value to solve my problem,


    if (fields[6].value != NULL) {
        if (!strcmp(fields[6].value, "CLIENT_FOUND_ROWS"))
           flags |= CLIENT_FOUND_ROWS; /* only option we know */
        else
           flags |= atol(fields[6].value);
    }

Can someone add this feature in the driver?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to