фасада DB? Интересует PostgreSql
                  
                  
                  
                  
                  
                  Вот у меня так:
                  
                  
                  
                  
                  
                  $res=DB::select('SELECT procedure(?,?,?,?,?,?)',[$request->ext, $request->name, $request->email, null, $request->client_id, true]);
                  
                  
                  
                  
                  
                  Эта хранимая процедура возвращает bigint
                  
                  
                  
                  
                  
                  Но 
                  
                  
                  
                  
                  
                  Log::info(print_r($res));
                  
                  
                  
                  
                  
                  Выводит всегда
                  
                  
                  
                  
                  
                  [2021-09-05 21:37:17] local.INFO: 1
                  
                  
                
https://stackoverflow.com/questions/42737433/get-result-of-stored-procedure-laravel
SQLSTATE[42809]: Wrong object type: 7 ERROR: "procedure" is not a procedure LINE 1: CALL procedure(1, 'fgffgfgfg', 'gfkjhjkh@kjhjkh.tu', n... ^ HINT: To call a function, use SELECT. (SQL: CALL procedure(1, 'fgffgfgfg', 'gfkjhjkh@kjhjkh.tu', null, 3, true ))
Обсуждают сегодня