Support the ongoing development of Laravel.io →
Laravel Database
Last updated 2 years ago.
0

I just checked that query with PDO connection in pure PHP. Query worked as expected. From here I come to decision that problem associated with Laravel. Below is full code

```
$db = new PDO("pgsql:dbname=Horecami;host=127.0.0.1", "postgres", "1" );
$sql = 'Select horeca_user.update_token(?, ?, ?)';
$stmt = $db->prepare($sql);
$type=1;
$id=1;
$z='az';
$stmt->bindValue(1, $type, PDO::PARAM_INT);
$stmt->bindValue(2, $id, PDO::PARAM_INT);
$stmt->bindValue(3, $z, PDO::PARAM_STR);
$stmt->execute();
$res=$stmt->fetchAll();

But i cannot understand why Laravel PDO instance cannot do it?
Last updated 5 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Azer azegurb Joined 31 Mar 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.