Changeset 43246 in spip-zone


Ignore:
Timestamp:
Dec 30, 2010, 1:22:36 PM (10 years ago)
Author:
fil@…
Message:

report de http://core.spip.org/trac/spip/changeset/16868 notation connect:requete pour le format sql

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/iterateurs/iterateur/data.php

    r43243 r43246  
    343343}
    344344function inc_sql_to_array_dist($u) {
    345         if ($s = sql_query($u)) {
     345        # sortir le connecteur de $u
     346        preg_match(',^(?:(\w+):)?(.*)$,S', $u, $v);
     347        $serveur = (string) $v[1];
     348        $req = trim($v[2]);
     349        if ($s = sql_query($req, $serveur)) {
    346350                $r = array();
    347351                while ($t = sql_fetch($s))
Note: See TracChangeset for help on using the changeset viewer.