Perl DBI Documentation Proposal: Using NULLs in Placeholders
From: Brian D Campbell (campbelb_at_lucent.com)
Date: 12/16/04
- Previous message: Ron Reidy: "RE: Please Help !!! Unable to install DBD-Oracle ( I am using perl 5.6 on solaris 8)"
- Next in thread: Jeff Zucker: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Reply: Jeff Zucker: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Reply: Michael A Chase tech: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: dbi-users@perl.org Date: Thu, 16 Dec 2004 11:33:17 -0600
Fellow DBI Users,
Tim Bunce has asked me to help revise the NULLs subsection in the "Placeholders and Bind Values" section in the DBI documention for DBI 1.47. Attached is the proposed text to be included, along with an associated perl script. You are invited to review them. Please send comments back directly to me (not the DBI users mailing list). I'll post a summary in January.
The revision addresses the issue of testing for NULL values in a WHERE clause. There's no "one size fits all" solution, so several options are given. In particular, several examples of WHERE clauses are presented that can support both NULL and non-NULL tests. But the examples tend to rely on database specific features or how flexibly they support placeholders (e.g. Informix supports the NVL function but not with a placeholder).
Near the bottom of the attached text is a table that lists some database engines and which WHERE clause examples work with them. The table is sparse. Only Informix has been properly tested so far. Any other entries you see are educated guesses. You can help us fill out the table. How? Use the attached perl script that you can run to see which examples actually work on your favorite database engine. I invite you to run it and send the results back to me (not the DBI users mailing list). I'll post a summary. View the top of the perl script for specific instructions. You'll likely want to change the suffix of the script's file name to .pl.
- application/octet-stream attachment: Brian_Campbell__E-mail_.vcf
- text/plain attachment: perl_dbi_nulls_perldoc.txt
- text/plain attachment: perl_dbi_nulls_test_pl.txt
- Previous message: Ron Reidy: "RE: Please Help !!! Unable to install DBD-Oracle ( I am using perl 5.6 on solaris 8)"
- Next in thread: Jeff Zucker: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Reply: Jeff Zucker: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Reply: Michael A Chase tech: "Re: Perl DBI Documentation Proposal: Using NULLs in Placeholders"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]