transactions

Fragment duplication on Fragment Transaction

ぐ巨炮叔叔 提交于 2019-12-17 10:33:35
问题 Ok, whenever I try to replace a fragment in my application, it only adds the fragment inside of the container the other fragment is, and leaves the current fragment. I've tried calling replace and referencing the view the contains the fragment, and by referencing the fragment itself. Neither of these work. I can add a fragment to a view with the fragment transaction manager, but even if I try to remove it after its been added, it doesn't work. Any help would be appreciated. Here are my files.

What is the default transaction isolation level for SQL Server with ADO.NET?

ぐ巨炮叔叔 提交于 2019-12-17 09:39:41
问题 What is the default transaction isolation level for SQL Server with ADO.NET? I am using a default installation of SQL Server and just the normal System.Data.SqlClient classes. 回答1: READ COMMITTED is the default isolation level for the Microsoft SQL Server Database Engine. Source: Customizing Transaction Isolation Level @ MSDN. Here is how it compares to other isolation levels: Transaction Isolation Levels @ MSDN. The MSDN documentation for SqlConnection.BeginTransaction() also states Read

Oracle: DDL and transaction rollback

血红的双手。 提交于 2019-12-17 06:49:05
问题 Could in Oracle DDL (create/alter) be transactional like they are in MS SQL (started from 2005)? 回答1: No. In Oracle DDL statements themselves are not transactional. Running a DDL statement will implicitly commit any open transaction for that session before starting the actual work. In addition some statements, like an alter table statement, may fail if another session has an open transaction on the object being modified or one of its dependencies. You can set a ddl_lock_timeout to specify how

Does Postgres support nested or autonomous transactions?

ぐ巨炮叔叔 提交于 2019-12-17 06:48:09
问题 I have situation in which I have to commit a portion of code as transaction of its own. I have created a table subtransaction_tbl : CREATE TABLE subtransaction_tbl ( entryval integer ) And a function in language plpython3u: CREATE FUNCTION subtransaction_nested_test_t() RETURNS void AS $$ plpy.execute("INSERT INTO subtransaction_tbl VALUES (1)") with plpy.subtransaction(): plpy.execute("INSERT INTO subtransaction_tbl VALUES (2)") $$ LANGUAGE plpython3u; First situation: BEGIN TRANSACTION;

EJB Transactions in local method-calls

元气小坏坏 提交于 2019-12-17 06:05:17
问题 In the following setup, does method B run in a (new) transaction? An EJB, having two methods, method A and method B public class MyEJB implements SessionBean public void methodA() { doImportantStuff(); methodB(); doMoreImportantStuff(); } public void methodB() { doDatabaseThing(); } } The EJB is container managed, with methodB in requires_new transaction, and method A in required transaction. thus: <container-transaction id="MethodTransaction_1178709616940"> <method id="MethodElement

Codeigniter Transactions

社会主义新天地 提交于 2019-12-17 05:53:07
问题 I'm using Codeigniter transactions $this->db->trans_start(); $this->db->query('AN SQL QUERY...'); $this->db->trans_complete(); This works fine , the problem I have is that inside the trans_start and trans_complete I'm calling other functions and those functions deals with database so they contains inserts and update and some deletes ... ex: $this->db->trans_start(); $this->utils->insert_function($data); $this->utils->update_function2($test); $this->db->trans_complete(); Now if those functions

Difference between SET autocommit=1 and START TRANSACTION in mysql (Have I missed something?)

谁说我不能喝 提交于 2019-12-17 05:38:51
问题 I am reading up on transactions in MySQL and am not sure whether I have grasped something specific correctly, and I want to be sure I understood that correctly, so here goes. I know what a transaction is supposed to do, I'm just not sure whether I understood the statement semantics or not. So, my question is, is anything wrong, (and, if that is the case, what is wrong) with the following: By default, autocommit mode is enabled in MySQL. Now, SET autocommit=0; will begin a transaction, SET

Difference between SET autocommit=1 and START TRANSACTION in mysql (Have I missed something?)

人盡茶涼 提交于 2019-12-17 05:37:14
问题 I am reading up on transactions in MySQL and am not sure whether I have grasped something specific correctly, and I want to be sure I understood that correctly, so here goes. I know what a transaction is supposed to do, I'm just not sure whether I understood the statement semantics or not. So, my question is, is anything wrong, (and, if that is the case, what is wrong) with the following: By default, autocommit mode is enabled in MySQL. Now, SET autocommit=0; will begin a transaction, SET

Using “GO” within a transaction

无人久伴 提交于 2019-12-17 04:56:09
问题 I'm building a web app that attempts to install/upgrade the database on App_Start. Part of the installation procedure is to ensure that the database has the asp.net features installed. For this I am using the System.Web.Management.SqlServices object. My intention is to do all the database work within an SQL transaction and if any of it fails, roll back the transaction and leave the database untouched. the SqlServices object has a method "Install" that takes a ConnectionString but not a

Spring @Transactional read-only propagation

痞子三分冷 提交于 2019-12-17 04:14:27
问题 I'm experimenting with using the command pattern to allow my web layer to work with Hibernate entities within the context of a single transaction (thus avoiding lazy loading exceptions). I am, however, confused now with how I should deal with transactions. My commands call service layer methods that are annotated with @Transactional annotations. Some of these service layer methods are read-only - e.g. @Transactional(readOnly=true) - and some are read/write. My service layer exposes a command