ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PApp-SQL/t/01_err.t
Revision: 1.1
Committed: Mon Feb 5 14:08:48 2001 UTC (23 years, 5 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: DEVEL9916, PAPP_0_12, papp_last_stable, Klinik_Kis_25032002_2245, DEVEL7952, DEVEL9021, pre_big_pcode_semantic_change
Log Message:
*** empty log message ***

File Contents

# Content
1 BEGIN { $| = 1; print "1..4\n"; }
2 END {print "not ok 1\n" unless $loaded;}
3 use PApp::SQL;
4 $loaded = 1;
5 print "ok 1\n";
6
7 eval { sql_exec "" };
8 print $@ =~ /no \$DBH found/ ? "" : "not ", "ok 2\n";
9
10 $DBH=5;
11 eval { sql_exec "" };
12 print $@ =~ /no \$DBH found/ ? "" : "not ", "ok 3\n";
13 undef $DBH;
14
15 $db = new PApp::SQL::Database "", "DBI:nodb:nodb", "user", "pass";
16 print $db->dsn eq "DBI:nodb:nodb" ? "" : "not $@", "ok 4\n";
17