problem with camelCase in getInsertId

3 years ago

opravil.jan
Member | 4
+
0
-

Hello,

in my application I run in problem with getInsertId() function. I'm using PostgreSQL as a database and I know that I have to use name in getInsertId function. The problem is that my sequence is in camelCase and nette throw this error:
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation “chamber__chamber_idchamber_seq” does not exist. My script looks like this:

<script>
$chamber->setIdChamber($this->database->getInsertId("chamber__chamber_idChamber_seq"));
</script>

Is there a reason I can not use camelCase in getInsertId as a name of a sequece. I did not find anything in documentation.

Thank you for answer.