diff options
author | Timothy Warren <tim@timshomepage.net> | 2011-09-14 19:47:06 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2011-09-14 19:47:06 +0200 |
commit | 51a4888c71287e66d21c9749c13ba895953b9acb (patch) | |
tree | 062abfd9ba9a58f0f507450dcd12f8eadff2c9f7 /user_guide/database | |
parent | e113080cff02502a9dc6fe80076f0316708e7acf (diff) |
Fixed affected_rows() function, added PDO/postgres note for insert_id() function
Diffstat (limited to 'user_guide/database')
-rw-r--r-- | user_guide/database/helpers.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/user_guide/database/helpers.html b/user_guide/database/helpers.html index 6a8aba55b..ecd0d84b6 100644 --- a/user_guide/database/helpers.html +++ b/user_guide/database/helpers.html @@ -64,6 +64,7 @@ Query Helpers <h2>$this->db->insert_id()</h2> <p>The insert ID number when performing database inserts.</p> +<p class="important"><strong>Note:</strong> If using the PDO driver with PostgreSQL, this function requires a $name parameter, which specifies the appropriate sequence to check for the insert id.</p> <h2>$this->db->affected_rows()</h2> <p>Displays the number of affected rows, when doing "write" type queries (insert, update, etc.).</p> |