Re: cast problem 8.3.1

From: Steve Clark <sclark(at)netwolves(dot)com>
To: tech(at)denarius(dot)ca
Cc: 'pgsql' <pgsql-general(at)postgresql(dot)org>
Subject: Re: cast problem 8.3.1
Date: 2008-03-21 15:00:30
Message-ID: 47E3CD8E.5080103@netwolves.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Charles Simard wrote:
> <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.
>
>
thanks Charles and Rodrigo - that fixed it.

Steve

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Clark 2008-03-21 15:43:23 ecpg program getting stuck
Previous Message Colin Wetherbee 2008-03-21 14:17:57 Re: [postgis-users] how many min. floating-points?