Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Re: MySQL
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Database:
MySQL
Divers
Thread ID:
01235153
Message ID:
01235521
Vues:
16
Stuart,

>I have made some progress with mySQL and it now seems to work as long as I do not set this.RetrieveAutoIncrementPK = true; then I get the following error
>
>FUNCTION tp.SCOPE_IDENTITY does not exist
>
Very groovy! If you have subclassed your mySql data access class from mmDataAccessSql then you need to override the ConfigureInsertForAutoIncrement() method with code that can be used to retrieve the newly generated primary key from mySql. A quick Google search turned this up for MySql:

mysql_insert_id()

Here's the link where I found this:

http://dev.mysql.com/doc/refman/5.0/en/mysql-insert-id.html

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform