Skip to content
Snippets Groups Projects
Commit f82dc440 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now checks for existance of Msql.msql.

Rev: lib/modules/Sql.pmod/msql.pike:1.4
parent c2bcb9e0
Branches
Tags
No related merge requests found
// Msql module support stuff, (C) 1997 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it> // Msql module support stuff, (C) 1997 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it>
#if constant(Msql.msql)
inherit Msql.msql; inherit Msql.msql;
//in c it's too hard, we're better off doing it in pike //in c it's too hard, we're better off doing it in pike
...@@ -11,3 +12,9 @@ mapping(string:mapping(string:mixed)) list_fields(string table, string|void wild ...@@ -11,3 +12,9 @@ mapping(string:mapping(string:mixed)) list_fields(string table, string|void wild
return mkmapping(a,Array.map(a,lambda(string s, mapping m) return mkmapping(a,Array.map(a,lambda(string s, mapping m)
{return m[s];},result)); {return m[s];},result));
} }
#else /* !constant(Msql.msql) */
void create()
{
destruct();
}
#endif /* constant(Msql.msql) */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment