How to use DB functions while doing a create?

[prev] [thread] [next] [Date index for 2005/01/11]

From:
Subject: How to use DB functions while doing a create?
Date: 10:14 on 11 Jan 2005
Dear list,

MySQL provides a function called "password" to store passwords encrypted
in the DB. I was wondering how I could use that while using Class::DBI
and its create method.

Here's what I do now:
my $dbh =3D MyClass->db_Main();
$dbh->do( "INSERT INTO users VALUES ( $id, $name, password( '$pwd' ) "
);

Is there a way to better integrate this with Class::DBI?

Thanks,
Daniel.

How to use DB functions while doing a create?
10:14 on 11 Jan 2005

Generated at 12:15 on 16 Jan 2005 by mariachi v0.52