postgresql - PQgetisnull : Not not return true even value is empty in DB -


I am working on a bug in my database library which internally uses LibPak. I look at the following behavior I am feeling awkward:

Postgre for SQL datatype DATE gives correct returns if the DG for DG is postgrescl datatype TIME it becomes correct if db

but for VAARA, smashing ... on return Reddy was empty DB.

PS I have not yet checked other data types

empty string and zero (0) are not the same To see how many NULLs versus blank strings are present for your field in terms of tap, run a form of this query to see:

  SELECT COALESCE (& lt; field_name & gt ;, ' NULL '), COUNT (*) FROM & lt; Table_name & gt; WHERE & lt; Field_name & gt; = '' OR & lt; Field_name & gt; Number zero to group 1  

Change the empty string ('') in this query with zero to check against the numerical field.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -