yes that works.
My problem is not with sqlops.
My problem is with the DEFINE.
If I define:
#!define DBURL "mysql://user:password@localhost/dbname"
and later:
modparam("domain", "db_url", DBURL)
and then:
modparam("sqlops","sqlcon","cb=>mysql://user:password@localhost/dbname")
Everything works properly.
My problem is how to use that DEFINE on ALL instances where i need to use it.
i.e.
#!define DBURL "mysql://user:password@localhost/dbname"
modparam("domain", "db_url", DBURL)
modparam("sqlops","sqlcon","cb=>mysql://user:password@localhost/dbname")
works, but;
#!define DBURL ©
modparam("domain", "db_url", DBURL)
modparam("sqlops","sqlcon","cb=>DBURL")
does NOT, since
DBURL translates "mysql://user:password@localhost/dbname" (quotes included)
so
modparam("sqlops","sqlcon","cb=>DBURL")
translates into
modparam("sqlops","sqlcon","cb=>"mysql://user:password@localhost/dbname"")
and that, of course, fails.
Regards,
David Villasmil
phone: +34669448337