Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » PostgreSQL GetInsertedId()
Re: PostgreSQL GetInsertedId() [message #16696 is a reply to message #16692] Mon, 07 July 2008 22:46 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:


Does not help, MySQL does not have sequences.
Frankly, this is troublesome problem with many dead ends...


I said add not replace Smile :
int GetInsertedId() - for database with autoincrement fields
int GetInsertedId(const char* s) - for database with sequences

or just current GetInsertedId could be replaced with

int GetInsertedId(const char* s = NULL)

if sequence name is null it returns last valid inserted id (of course for databases which supports this way).

This do not solve assist problem - you have to know what getinsertedid to use for your database.

[Updated on: Mon, 07 July 2008 22:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Quick explanation of function calls for postgresql
Next Topic: db access to MS ACCESS
Goto Forum:
  


Current Time: Mon May 13 03:56:32 CEST 2024

Total time taken to generate the page: 0.02486 seconds