Re: cast problem 8.3.1 - Mailing list pgsql-general

From Charles Simard
Subject Re: cast problem 8.3.1
Date
Msg-id E6AE5AD88D55B543A0A97FF0B93AA9E93C338D@TRADE200.DENARIUS.CA
Whole thread Raw
In response to cast problem 8.3.1  (Steve Clark <sclark@netwolves.com>)
Responses Re: cast problem 8.3.1  (Steve Clark <sclark@netwolves.com>)
List 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.


pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: nntp not workiNG
Next
From: Colin Wetherbee
Date:
Subject: Re: [postgis-users] how many min. floating-points?