(RADIATOR) Using SQL statemens inside a PostAuthHook

Matthew Trout MatthewTrout at businessserve.co.uk
Tue Feb 11 05:41:50 CST 2003


If you use DBI->connect_cached with the same connect string, you should get
the handle Radiator's already opened ...

> -----Original Message-----
> From: Bogdan TARU [mailto:bgd at icomag.de]
> Sent: Tuesday, February 11, 2003 10:57 AM
> To: radiator at open.com.au
> Subject: (RADIATOR) Using SQL statemens inside a PostAuthHook
> 
> 
> 
> 	Hi everyone,
> 
>  I have noticed the following phrase in the Radiator documentation:
> 
>  6.16.14 PostAuthHook:
>   -skip- PostAuthHook can be an arbitrarily complicated Perl function,
> that might run external processes, consult databases, change 
> the contents
> of the current request or many other things. -skip-
> 
>  My question is how can I consult a database from inside a 
> PostAuthHook? I
> am tring to use the same SQL database as the one configured in <AuthBy
> SQL>. So, do I have to connect once again using perl 
> functions, or can I
> somehow 're-use' the existing SQL connection to make some queries?
> 
>  Could I get some examples of how to do this? I have already 
> checked the
> 'hooks.txt' file, but no database examples are there.
> 
>  Thank you,
>  bogdan
> 
> 
> ----------------------------
> iCom Media AG
> Kirchweg 36
> Koln, 50858
> Germany
> 
> Phone: +49-(0)221-485-689-16
> Fax  : +49-(0)221-485-689-20
> Mobile:+49-(0)173-906-46-01
> 
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.open.com.au/pipermail/radiator/attachments/20030211/ca404127/attachment.html>


More information about the radiator mailing list