Skip site navigation (1) Skip section navigation (2)

Re: Interface update for 7.3

From: "Jason E(dot) Stewart" <jason(at)openinformatics(dot)com>
To: "Jason E(dot) Stewart" <jason(at)openinformatics(dot)com>
Cc: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>,"PostgreSQL-development" <pgsql-hackers(at)postgreSQL(dot)org>,"PostgreSQL-interfaces" <pgsql-interfaces(at)postgreSQL(dot)org>,david(at)wheeler(dot)net
Subject: Re: Interface update for 7.3
Date: 2002-11-27 10:46:34
Message-ID: 87u1i3guid.fsf@openinformatics.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-interfaces
"Jason E. Stewart" <jason(at)openinformatics(dot)com> writes:

> "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> 
> > I am working with David Wheeler on DBD:pg and hope to have a release
> > packaged up tomorrow.
> 
> Bruce, David,
> 
> I'm updating all the test scripts to properly use the standard DBI
> testing env vars, e.g. DBI_DSN, DBI_USER, DBI_PASS, and to use
> Test::More.
> 
> I've finished and committed half of them, I'll let you know when I'm
> done.

Ok, all done. All tests now use standard DBI vars and Test::More.

All tests pass.

David, could you take a look at 11quoting.t? I'm pretty sure you wrote
this test (didn't you?). I converted the array of tests to a hash
table so that I could give them names. However, I could only give the
tests names like 'one', 'two', etc. Perhaps you can think of something
more descriptive.

The names are a really nice feature of Test::More. When you run the
test files individually it prints out:

  1..8
  ok 1 - connect with transaction
  ok 2 - three: \ -> expected '\134' got '\134'
  ok 3 - five: \'?: -> expected '\134\047?:' got '\134\047?:'
  ok 4 - one: ' -> expected '\047' got '\047'
  ok 5 - two: '' -> expected '\047\047' got '\047\047'
  ok 6 - four: \' -> expected '\134\047' got '\134\047'
  ok 7 - SQL_BINARY
  ok 8 - disconnect

So that you can find a test by name when it fails.

Cheers,
jas.

In response to

Responses

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2002-11-27 10:54:13
Subject: Re: [mail] Re: Native Win32 sources
Previous:From: david luoDate: 2002-11-27 10:24:42
Subject: How can i import database from MSSQL to Postgres?(NULL BODY)

pgsql-interfaces by date

Next:From: Oliver ElphickDate: 2002-11-27 14:15:48
Subject: Re: Handling SQL errors using libpq
Previous:From: Jason E. StewartDate: 2002-11-27 09:15:20
Subject: Re: Interface update for 7.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group