Browse Source

fixed get sp args

develop
Robin Thoni 8 years ago
parent
commit
3656327f52
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/Utils/DataAccess/PgSqlDataAccess.php
  2. 1
    1
      tests/DatabaseTest.php

+ 1
- 1
src/Utils/DataAccess/PgSqlDataAccess.php View File

@@ -195,7 +195,7 @@ WHERE table_type = 'BASE TABLE' AND table_schema NOT IN ('pg_catalog', 'informat
195 195
         }
196 196
 
197 197
         foreach ($sps as $sp_name => $sp) {
198
-            $args = $this->getStoredProceduresArguments($pdo, $sp_name);
198
+            $args = $this->getStoredProceduresArguments($pdo, $sp);
199 199
             if (is_null($args)) {
200 200
                 return null;
201 201
             }

+ 1
- 1
tests/DatabaseTest.php View File

@@ -169,6 +169,6 @@ class DatabaseTest extends \PHPUnit_Framework_TestCase
169 169
 
170 170
         $pdo = TestTableDataAccess::getPdo();
171 171
         $pgsql = new PgSqlDataAccess();
172
-        var_dump($pgsql->getStoredProcedures($pdo));
172
+        var_dump($pgsql->getStoredProceduresFull($pdo));
173 173
     }
174 174
 }

Loading…
Cancel
Save