DBD_SQLFLEX
view release on metacpan or search on metacpan
D_imp_drh(drh);
SV *valuesv = dbd_ix_dr_FETCH_attrib(imp_drh, keysv);
if (!valuesv)
valuesv = DBIS->get_attr(drh, keysv);
ST(0) = valuesv; /* dbd_dr_FETCH_attrib did sv_2mortal */
# Utility function to list available databases
void
data_sources(drh)
SV *drh
PPCODE:
# Note that a database name could consist of up to 18 characters in OnLine,
# plus the name of the server (no limit defined, assume 18 again), plus the
# at sign and the NUL at the end.
#define MAXDBS 100
#define MAXDBSSIZE (18+18+2)
#define FASIZE (MAXDBS * MAXDBSSIZE)
int sqlcode = 0;
int ndbs = 0;
int i;
char *dbsname[MAXDBS + 1];
( run in 1.291 second using v1.01-cache-2.11-cpan-71847e10f99 )