diff --git a/src/Oci8/Schema/Sequence.php b/src/Oci8/Schema/Sequence.php index f57363c3..a90bb9e6 100644 --- a/src/Oci8/Schema/Sequence.php +++ b/src/Oci8/Schema/Sequence.php @@ -122,7 +122,7 @@ public function nextValue($name) $name = $this->wrap($name); - return $this->connection->selectOne("SELECT $name.NEXTVAL as \"id\" FROM DUAL")->id; + return $this->connection->selectOne("SELECT '$name.NEXTVAL' as \"id\" FROM DUAL")->id; } /**