Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)

From: David Noel <david(dot)i(dot)noel(at)gmail(dot)com>
To: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)
Date: 2014-04-29 09:54:14
Message-ID: CAHAXwYDxz2mGrAkpRtuR7SoNthB102Zecpp0vBv=qLLm8vaWoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 'health'<>'' (if that is what you have) means a boolean expression that
> compares the
> literal 'health' with the empty literal '' which is of course always false.

Ah. Gotcha. Thanks. I didn't know you could use a single double
quotation mark in a query -- I thought like in most languages that you
needed two of them for it to be valid.

> Maybe *health* is a column name somewhere ? In this case it should be
> written :
> "health" <> '' (i.e. comparison between the value of column "health" and the
> literal value '')

'health' is one of the accepted values of the page table's
"Classification" column.

Many thanks,

-David

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2014-04-29 09:58:37 Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)
Previous Message Achilleas Mantzios 2014-04-29 09:45:20 Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)