PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > transaction problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
transaction problem

Réponse
 
LinkBack Outils de la discussion
Vieux 05/09/2007, 16h49   #1
jidntt@yahoo.com.ar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut transaction problem

Hi list!
I've a problem with transaction
I initiate a transaction with "start transaction". Soon i execute
following query:
* update t1 set t=12; and by I complete I execute rollback but when I do
it I obtain the following thing:
"non-transactional Some changed tables couldn't be rolled back" and
update I execute myself updating the data
Why do it?
I'm use MySQL 4.1.20 and MyISAM tables

Thanks,

Pablo
  Réponse avec citation
Vieux 05/09/2007, 16h58   #2
Martijn Tonies
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: transaction problem

Hi,

> I've a problem with transaction
> I initiate a transaction with "start transaction". Soon i execute
> following query:
> * update t1 set t=12; and by I complete I execute rollback but when I do
> it I obtain the following thing:
> "non-transactional Some changed tables couldn't be rolled back" and
> update I execute myself updating the data
> Why do it?
> I'm use MySQL 4.1.20 and MyISAM tables


Have you been reading any documentation on Transactions in MySQL?

MyISAM tables don't support transactions!

For each table, you can assign a different "storage engine", which
is the implementation that physically stores your data. Depending
on the storage engine you're using for your table, MySQL supports
different features, like transactions.

Read the docs on the different engines.

Martijn Tonies
Database Workbench - development tool for MySQL, and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
  Réponse avec citation
Vieux 05/09/2007, 20h11   #3
Baron Schwartz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: transaction problem

Hi,

jidntt@yahoo.com.ar wrote:
> Hi list!
> I've a problem with transaction
> I initiate a transaction with "start transaction". Soon i execute
> following query:
> * update t1 set t=12; and by I complete I execute rollback but when I do
> it I obtain the following thing:
> "non-transactional Some changed tables couldn't be rolled back" and
> update I execute myself updating the data
> Why do it?
> I'm use MySQL 4.1.20 and MyISAM tables


MyISAM doesn't support transactions. You probably need to use InnoDB.
(There are some other storage engines with transaction support, but they
are not usually distributed with most MySQL servers).

There is more information on this in the MySQL manual.

Baron
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 04h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08650 seconds with 11 queries