Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

by repson (Chaplain)
on Nov 29, 2000 at 04:26 UTC ( #43807=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
in thread Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

You could use idea 1 and use the sql statement 'describe table' then you could checksum that output and if the checksum changes, die and don't run until the program is updated. This could apply if other people are likely to change column names and you don't want your program to try to run in an unknown situation.
  • Comment on Re: Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

Replies are listed 'Best First'.
Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
by Dominus (Parson) on Nov 29, 2000 at 04:32 UTC
    I think that my example shows that that won't always help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://43807]
help
Chatterbox?
[Eily]: yes we're pretty prawn to making puns around here
Eily went to the wiktionary to check that the pronunciations of prawn and prone are actually similar. Turns out prawn can be an alternative form of porn...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-06-29 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (662 votes). Check out past polls.