Dale,

I was going to suggest that, and it might be the only way to succesfully do
the trick.



On 8/27/07, Dale Fraser <[EMAIL PROTECTED]> wrote:
>
>
> Could you at application start or some other point do (for the tags you
> want
> to use)
>
> <cfset isDbInfo = true />
>
> <cftry>
>        <cfdbinfo ...>
>        <cfcatch type="any">
>                <cfset isDbInfo = false />
>        </cfcatch>
> </cftry>
>
> There are probably only a small number of tags that you want to use that
> won't be in all versions.
>
> Then you could say
>
> <cfif isDbInfo>
>
> And you don't need to code against specific products (assuming they all
> catch).
>
>
> Regards
> Dale Fraser
>
> http://dalefraser.blogspot.com
>
>
> -----Original Message-----
> From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf
> Of Mark Mandel
> Sent: Monday, 27 August 2007 5:47 PM
> To: cfaussie@googlegroups.com
> Subject: [cfaussie] Re: Any way to get a list of all cftags?
>
>
> Yeah, that's a good idea (and what I did in the first place),
> unfortunately in CF8 there is a setting to turn off access to
> coldfuion.* java objects, so I wanted to have preferential treatment
> to the cfdbinfo tag, if it existed.
>
> Mark
>
> On 8/27/07, Haikal Saadh <[EMAIL PROTECTED]> wrote:
> >
> > To reply to your request for an Orange with an Apple, why not write a
> > thin wrapper around java.sql.DatabaseMetaData?
> >
> > http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html
> > particularly
> >
>
> http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html#getTa
> bles(java.lang.String
> ,%20java.lang.String,%20java.lang.String,%20java.lang.S
> tring[])
> >
> > someDataSource.getConnection().getMetaData will give you this info, and
> > it's available in jdk1.4.2 (at least).
> >
> > You have to resort to some trickery to actually get a DataSource Object
> > in CF 6 (and possibly 7?) but I understand that it's possible?
> >
> > Quick googling found
> > http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=12 but I'm not sure
> > which cf version this is applicable to.
> >
> > Mark Mandel wrote:
> > > Yes, but I'm writing framework code, that is supporting multiple
> > > versions of products, so, there is no 'you must be on CF8'.
> > >
> > > Basically, if the feature is there, I want to use it, and if it isn't
> > > there, I want it to scale down gracefully.
> > >
> > > I can say all this one more time, if you would like ;o)
> > >
> > > Mark
> > >
> >
> >
> > >
> >
>
>
> --
> E: [EMAIL PROTECTED]
> W: www.compoundtheory.com
>
>
> >
>


-- 



Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to