Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Pgadmin Support > Re: Show NULL v...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 1934 of 2158
Post > Topic >>

Re: Show NULL values AS <NULL> not working

by andy.shellam-lists@[EMAIL PROTECTED] ("Andy Shellam") Jan 14, 2008 at 11:29 PM

------=_Part_9644_15864457.1200353343356
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Dave

Ah right OK, I didn't realise the "Query" tab was just for SQL editor, I
thought it was for the data entry grids as well.

Thanks for clearing that up.


> instead I had to do:
> >
> > "SELECT COALESCE(first_invalid, '1900-01-01') AS first_invalid FROM
> table"
> >
> > to prove the column is in fact NULL, and I do get: "1900-01-01
> 00:00:00+00"
> > for this record, but in the data entry grid, PgAdmin still displays it
> > blank.
>
> That doesn't prove it's null - it proves it's null OR 1900-01-01
> 00:00:00+00. However, the <NULL> output option is onlt for the Query
> Tool. The data entry grid always displays an empty cell for NULL, ''
> for a blank string, and \'\' for a pair or single quotes. From the
> docs:



I knew it was NULL cause the table only had 1 row in it, and I'd purposely
set it to NULL through a query ;-)

Andy

------=_Part_9644_15864457.1200353343356
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi Dave<br><br>Ah right OK, I didn&#39;t realise the &quot;Query&quot; tab
was just for SQL editor, I thought it was for the data entry grids as
well.<br><br>Thanks for clearing that up.<br><br><br><div><blockquote
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204);
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; instead I had to do:<br>&gt;<br>&gt; &quot;SELECT
COALESCE(first_invalid, &#39;1900-01-01&#39;) AS first_invalid FROM
table&quot;<br>&gt;<br>&gt; to prove the column is in fact NULL, and I do
get: &quot;1900-01-01 00:00:00+00&quot;
<br>&gt; for this record, but in the data entry grid, PgAdmin still
displays it<br>&gt; blank.<br><br>That doesn&#39;t prove it&#39;s null -
it proves it&#39;s null OR 1900-01-01<br>00:00:00+00. However, the
&lt;NULL&gt; output option is onlt for the Query
<br>Tool. The data entry grid always displays an empty cell for NULL,
&#39;&#39;<br>for a blank string, and \&#39;\&#39; for a pair or single
quotes. From the<br>docs:</blockquote><div><br><br>I knew it was NULL
cause the table only had 1 row in it, and I&#39;d purposely set it to NULL
through a query ;-)
<br><br></div></div>Andy<br>

------=_Part_9644_15864457.1200353343356--
 




 6 Posts in Topic:
Show NULL values AS not working
andy.shellam-lists@[EMAIL  2008-01-14 22:41:59 
Re: Show NULL values AS not working
andy.shellam-lists@[EMAIL  2008-01-14 22:49:57 
Re: Show NULL values AS not working
mshapiro51@[EMAIL PROTECT  2008-01-14 16:57:10 
Re: Show NULL values AS not working
dpage@[EMAIL PROTECTED]   2008-01-14 22:58:09 
Re: Show NULL values AS not working
andy.shellam-lists@[EMAIL  2008-01-14 23:29:03 
Re: Show NULL values AS not working
dpage@[EMAIL PROTECTED]   2008-01-15 08:52:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 17:08:25 CST 2008.