CFStoredProc Returns 1 Character of a longer string

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

  1. #1

    Default CFStoredProc Returns 1 Character of a longer string

    Hi,

    I am using this code:

    <cfstoredproc datasource="x" procedure="rUserRoles">
    <cfprocparam type = "IN" CFSQLType="CF_SQL_VARCHAR" value =
    "#session.User#" dbVarName = "@UID">
    <cfprocparam type = "OUT" CFSQLType="CF_SQL_VARCHAR" dbVarName = "@Role"
    variable="sMasterRole">
    <cfprocparam type = "OUT" cfsqltype="cf_sql_integer" dbVarName =
    "@PersonID" variable="PersonID">
    <cfprocparam type = "OUT" cfsqltype="CF_SQL_VARCHAR" dbVarName = "@OPName"
    variable= "fName">
    </cfstoredproc>


    ---------------------------
    The output variable from fName is only ever one character. For example, if the
    name is 'Joe', the output is J. Querying SQL does return the full name, so I
    suspect the problem is with CF....

    Does anyone know why this might be and how to solve it?



    UKJools Guest

  2. Similar Questions and Discussions

    1. cfstoreprocedure now only returns 1 character only afterupgrading to MX 7
      I have the following stored procedure which works in CF 4.52 but does not work properly in MX 7. Any variable I return as type CF_SQL_VARCHAR...
    2. How to replace a variable string within /* variable_string */ with x for each character in string?
      How to replace a variable string within /* variable_string */ with x for each character in string? The string may span on multiple lines. for...
    3. #25434 [Bgs]: Include command with UTF-8 file returns undefined character
      ID: 25434 Updated by: moriyoshi@php.net Reported By: JanKarnik at atlas dot cz Status: Bogus Bug Type: ...
    4. #25434 [NEW]: Include command with UTF-8 file returns undefined character
      From: JanKarnik at atlas dot cz Operating system: Win2K+iis PHP version: 4.3.3 PHP Bug Type: *General Issues Bug...
    5. #24872 [NEW]: sprintf() returns trailing NULL character
      From: kostas at nasis dot com Operating system: Redhat 7.3, 8 PHP version: 4.3.2 PHP Bug Type: Feature/Change Request Bug...
  3. #2

    Default CFStoredProc Returns 1 Character of a longer string

    Hi,

    I am using this code:

    <cfstoredproc datasource="x" procedure="rUserRoles">
    <cfprocparam type = "IN" CFSQLType="CF_SQL_VARCHAR" value =
    "#session.User#" dbVarName = "@UID">
    <cfprocparam type = "OUT" CFSQLType="CF_SQL_VARCHAR" dbVarName = "@Role"
    variable="sMasterRole">
    <cfprocparam type = "OUT" cfsqltype="cf_sql_integer" dbVarName =
    "@PersonID" variable="PersonID">
    <cfprocparam type = "OUT" cfsqltype="CF_SQL_VARCHAR" dbVarName = "@OPName"
    variable= "fName">
    </cfstoredproc>


    ---------------------------
    The output variable from fName is only ever one character. For example, if the
    name is 'Joe', the output is J. Querying SQL does return the full name, so I
    suspect the problem is with CF....

    Does anyone know why this might be and how to solve it?


    UKJools Guest

  4. #3

    Default Re: CFStoredProc Returns 1 Character of a longer string

    Some possibly related threads that you might want look at.

    [url]http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=983630[/url]

    Phil
    paross1 Guest

  5. #4

    Default Re: CFStoredProc Returns 1 Character of a longer string

    Thanks, I did do a search...!! :)

    there appears to be no solution to this problem yet :|
    UKJools 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