Error when entering numbrs and letters in a string

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Error when entering numbrs and letters in a string

    hello. when i enter a string of numbers via an html form to a
    postgresql db, everything is fine. however, when numbers are combined
    with letters in the same input box, i get the following error:

    Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    Error while executing the query; ERROR: parser: parse error at or near
    "da5c247"

    any thoughts?

    m
    Mark Guest

  2. Similar Questions and Discussions

    1. String Index Out of Range Error on String ComparisonQuery
      I am running CFMX 6.1 on Linux connecting to a PostgreSQL database server. I am performing a simple SELECT * where somestring = thisstring When I...
    2. LWP error string
      Howdy All, Sorry for leaving the suubject out previously! With LWP or LWP::UserAgent I can check if the request was ok and then print the...
    3. An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
      Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources...
    4. calculating unique letters in string
      Question: Is it possible to calculate the unique letters in a string? for example boat got 4 unique letters, but feather got 6 unique letters from...
    5. NSNumberFormatter doesn't stop a user entering letters?
      Hi, I have a NSPanel with a NSForm which has some NSNumberFormatters attached to it's NSFormCells. It seems that the NSNumberFormatter doesn't...
  3. #2

    Default Re: Error when entering numbrs and letters in a string

    How about showing us the actual query you're trying to run???



    "Mark" <markbudash@hotmail.com> wrote in message
    news:4f210449.0308061044.69eb9fd1@posting.google.c om...
    > hello. when i enter a string of numbers via an html form to a
    > postgresql db, everything is fine. however, when numbers are combined
    > with letters in the same input box, i get the following error:
    >
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > Error while executing the query; ERROR: parser: parse error at or near
    > "da5c247"
    >
    > any thoughts?
    >
    > m

    Aaron Bertrand - MVP Guest

  4. #3

    Default Error when entering numbrs and letters in a string

    Sounds like your query is treating the value from the form
    as a number. When you add the letters in the form it
    becomes a string; however, your query is still expecting a
    number. If you are going to accept strings from the form,
    you must delimit them using what ever delimiter postgres
    expects for strings.

    John

    >-----Original Message-----
    >hello. when i enter a string of numbers via an html form
    to a
    >postgresql db, everything is fine. however, when numbers
    are combined
    >with letters in the same input box, i get the following
    error:
    >
    >Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    >Error while executing the query; ERROR: parser: parse
    error at or near
    >"da5c247"
    >
    >any thoughts?
    >
    >m
    >.
    >
    John Beschler 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