Browse Source

fixed get sp

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

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

219
             $sps = $spQuery->fetchAll();
219
             $sps = $spQuery->fetchAll();
220
             $data = [];
220
             $data = [];
221
             foreach ($sps as $sp) {
221
             foreach ($sps as $sp) {
222
-                $data[$sp["name"]] = ["sp" => $sp];
222
+                $data[$sp["sp_name"]] = ["sp" => $sp];
223
             }
223
             }
224
             return $data;
224
             return $data;
225
         }
225
         }

+ 2
- 2
tests/DatabaseTest.php View File

140
                 'name'      => 'mydb',
140
                 'name'      => 'mydb',
141
                 'driver'    => 'pgsql',
141
                 'driver'    => 'pgsql',
142
                 'host'      => '172.17.0.1',
142
                 'host'      => '172.17.0.1',
143
-                'database'  => 'luticate2',
143
+                'database'  => 'intra_betaclean',
144
                 'username'  => 'dev',
144
                 'username'  => 'dev',
145
                 'password'  => 'dev'
145
                 'password'  => 'dev'
146
             ]
146
             ]
169
 
169
 
170
         $pdo = TestTableDataAccess::getPdo();
170
         $pdo = TestTableDataAccess::getPdo();
171
         $pgsql = new PgSqlDataAccess();
171
         $pgsql = new PgSqlDataAccess();
172
-        var_dump($pgsql->getTablesFull($pdo));
172
+        var_dump($pgsql->getStoredProcedures($pdo));
173
     }
173
     }
174
 }
174
 }

Loading…
Cancel
Save