senich
Новичок
Вызов функции
Здравствуйте, у меня такая проблема:
Есть хранимая функция из консоли вызывается замечательно. а вот из php не вызывается
выдаёт следущее сообщение
Warning: pg_query(): Query failed: ERROR: function getcountries() does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. in d:\home\test\www\postgres\index.php on line 3
Warning: pg_fetch_all() expects parameter 1 to be resource, boolean given in d:\home\test\www\postgres\index.php on line 4
<?NULL?>
может кто подскажет в чём могут быть грабли?
Здравствуйте, у меня такая проблема:
Есть хранимая функция из консоли вызывается замечательно. а вот из php не вызывается
PHP:
<?
$dbconn = pg_connect("host=localhost port=5432 dbname=testing user=postgres password=postgres") or die(pg_errormessage());
$result = pg_query($dbconn, "SELECT * FROM \"GetCountries\"()");
$arr = pg_fetch_all($result);
highlight_string("<?".var_export($arr,true)."?>");
pg_close($dbconn);
?>
Warning: pg_query(): Query failed: ERROR: function getcountries() does not exist HINT: No function matches the given name and argument types. You may need to add explicit type casts. in d:\home\test\www\postgres\index.php on line 3
Warning: pg_fetch_all() expects parameter 1 to be resource, boolean given in d:\home\test\www\postgres\index.php on line 4
<?NULL?>
может кто подскажет в чём могут быть грабли?