Re: cast problem 8.3.1

From: Charles Simard <tech(at)denarius(dot)ca>
To: 'Steve Clark' <sclark(at)netwolves(dot)com>, 'pgsql' <pgsql-general(at)postgresql(dot)org>
Subject: Re: cast problem 8.3.1
Date: 2008-03-20 20:39:49
Message-ID: E6AE5AD88D55B543A0A97FF0B93AA9E93C338D@TRADE200.DENARIUS.CA
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<snip>
|>
|> postgres error log:
|> ERROR: operator does not exist: text = integer
|> HINT: No operator matches the given name and argument type(s). You
|> might need to add explicit type casts.
|> STATEMENT: update T_MON_DEVICE_STATUS set device_ip = $1 :: inet
|> , status = $2 :: integer , status_date = now () ,
|> last_event_log_no = case $3 when 0 then null else $4 :: integer
|> end where unit_serial_no = $5 :: text and device_name =
|> $6 :: text
|>
</snip>

You're not casting your $3.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rodrigo Gonzalez 2008-03-20 21:23:25 Re: cast problem 8.3.1
Previous Message Stephen Woodbridge 2008-03-20 19:57:49 Re: [postgis-users] how many min. floating-points?