agora inbox for pgsql-interfaces@postgresql.org  
help / color / mirror / Atom feed
From: Oliveiros d'Azevedo Cristina <oliveiros.cristina@marktest.pt>
To: francisco@npgsql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Detecting a Null field on an NpgsqlDataReader object
Date: Tue, 3 Aug 2010 17:46:54 +0100
Message-ID: <7C2FED61BE684CDD8CBAA745D6B37F24@marktestcr.marktest.pt> (raw)
References: <1BBEE93EA22B44CF870E6F37B350FF59@marktestcr.marktest.pt>
	<AANLkTimasvLEGs84qy3X+tHBEqQGACYtZAR3T4zpu9tw@mail.gmail.com>

Olá!

>> For ex, in Sql Server we just compare with DbNull singleton.
>>
>> What is the equivalent in Npgsql?
>>
>
> You can use the same way. Npgsql uses DBNull singleton to express null 
> values.
> If you are trying to check in the NpgsqlDataReader, you will need to
> use the method IsDBNull(int)
>
> I hope it helps.
>
>

Oh, I see.
All in all it's the same mechanism .
Yes, I'm indeed trying to check in a NpgsqlDataReader.
I'll give that method a try.



Obrigado,
Oliveiros 




view thread (4+ messages)  latest in thread

Message-ID: <7C2FED61BE684CDD8CBAA745D6B37F24@marktestcr.marktest.pt>
Permalink:  ../7C2FED61BE684CDD8CBAA745D6B37F24@marktestcr.marktest.pt/
Also on:    postgresql.org/message-id/7C2FED61BE684CDD8CBAA745D6B37F24@marktestcr.marktest.pt

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: oliveiros.cristina@marktest.pt, francisco@npgsql.org
  Subject: Re: Detecting a Null field on an NpgsqlDataReader object
  In-Reply-To: <7C2FED61BE684CDD8CBAA745D6B37F24@marktestcr.marktest.pt>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox