Parcourir la source

fixed get sp args

develop
Robin Thoni il y a 8 ans
Parent
révision
3656327f52
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1
    1
      src/Utils/DataAccess/PgSqlDataAccess.php
  2. 1
    1
      tests/DatabaseTest.php

+ 1
- 1
src/Utils/DataAccess/PgSqlDataAccess.php Voir le fichier

195
         }
195
         }
196
 
196
 
197
         foreach ($sps as $sp_name => $sp) {
197
         foreach ($sps as $sp_name => $sp) {
198
-            $args = $this->getStoredProceduresArguments($pdo, $sp_name);
198
+            $args = $this->getStoredProceduresArguments($pdo, $sp);
199
             if (is_null($args)) {
199
             if (is_null($args)) {
200
                 return null;
200
                 return null;
201
             }
201
             }

+ 1
- 1
tests/DatabaseTest.php Voir le fichier

169
 
169
 
170
         $pdo = TestTableDataAccess::getPdo();
170
         $pdo = TestTableDataAccess::getPdo();
171
         $pgsql = new PgSqlDataAccess();
171
         $pgsql = new PgSqlDataAccess();
172
-        var_dump($pgsql->getStoredProcedures($pdo));
172
+        var_dump($pgsql->getStoredProceduresFull($pdo));
173
     }
173
     }
174
 }
174
 }

Chargement…
Annuler
Enregistrer