MySQL procedure problem

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default MySQL procedure problem

    I wrote a login_user routine that returns a variable, and I was the able to
    select that variable and get it's value all through production using the CF
    built-in web server on port 8500, but when I uploaded to the live W2003 server,
    which runs MX7 under MSIIS I get

    NativeErrorCode 1312
    SQLState 0A000
    Detail PROCEDURE login_user can't return a result set in the given context

    I'm calling it onRequestStart in Application.cfc

    <cftry>
    <cfquery name="try_login" datasource="#this.dsn#">
    call
    login_user('#j_username#','#j_password#','#CGI.REM OTE_ADDR#','#CGI.HTTP_USER_AGE
    NT#',@total_logins);
    </cfquery>
    <cfswitch expression="#try_login.recordcount#">
    etc.....
    It returned a result set and recordcount many other times, but no longer. I
    verified I'm using the latest Connector/J 3.12 with MySQL 5.0.18 on both
    machines.

    Any ideas out there?


    EDUYork Guest

  2. Similar Questions and Discussions

    1. #40085 [NEW]: PHP/MySQL connector and Stored Procedure problem
      From: edward_chan at hotmail dot com Operating system: XP PHP version: 5.2.0 PHP Bug Type: MySQL related Bug description: ...
    2. Calling stored procedure from MysQL 5.0
      I am trying to call stored procedures using <cfquery> in Coldfusion MX 7.0, but I am getting this error: Error Executing Database Query. General...
    3. Does MySQL have a Stored Procedure equivalent?
      I've only used ASP and MS SQL Server before but I want to learn PHP and MySQL. Does MySQL have an equivalent of Microsoft's Stored Procedures (i.e....
    4. MySQL/PHP problem. getting field names from MySQL and using it asPHP variables
      Is this possible? I'd like to just get the field names from my database and use it as variables to save me from making errors as to where i should...
    5. ADO/Stored Procedure Problem
      After creating a new recordset and setting the cursor type to AdOpenStatic, I call a stored procedure thru the recordset's Open() method, and the...
  3. #2

    Default Re: MySQL procedure problem

    Figured it out... I still had an older version of Connector/J in another lib
    directory.

    So now I have another question... what's the best location for .jar files?
    I've been told CFMX7\wwwroot\WEB-INF\lib (my current choice) CFMX7\lib and
    CFMX7\runtime\lib and I suppose they all work, so is there a best practice?





    EDUYork Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139