|
From: Dain S. <dsu...@us...> - 2003-06-08 02:02:04
|
User: dsundstrom
Date: 03/06/07 19:02:03
Modified: src/etc/conf/default Tag: Branch_3_0
standardjbosscmp-jdbc.xml
Log:
Changed SQLServer 2000 rowlock template to use xlock instead of rowlock.
According to the SQL Server docs a rowlock only tells the lock manager to
use a rowlock instead of more corse grained page or table locks. This
does not result in an exclusive lock, just a normal shared lock. The xlock
flag results in a real exclusive lock, which is what we really wanted.
Revision Changes Path
No revision
No revision
1.23.2.27 +2 -2 jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml
Index: standardjbosscmp-jdbc.xml
===================================================================
RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml,v
retrieving revision 1.23.2.26
retrieving revision 1.23.2.27
diff -u -r1.23.2.26 -r1.23.2.27
--- standardjbosscmp-jdbc.xml 3 May 2003 11:02:56 -0000 1.23.2.26
+++ standardjbosscmp-jdbc.xml 8 Jun 2003 02:02:03 -0000 1.23.2.27
@@ -7,7 +7,7 @@
<!-- -->
<!-- ===================================================================== -->
-<!-- $Id: standardjbosscmp-jdbc.xml,v 1.23.2.26 2003/05/03 11:02:56 slaboure Exp $ -->
+<!-- $Id: standardjbosscmp-jdbc.xml,v 1.23.2.27 2003/06/08 02:02:03 dsundstrom Exp $ -->
<jbosscmp-jdbc>
@@ -1524,7 +1524,7 @@
<type-mapping>
<name>MS SQLSERVER2000</name>
- <row-locking-template>SELECT ?1 FROM ?2 with (rowlock) WHERE ?3</row-locking-template>
+ <row-locking-template>SELECT ?1 FROM ?2 with (xlock) WHERE ?3</row-locking-template>
<pk-constraint-template>CONSTRAINT ?1 PRIMARY KEY (?2)</pk-constraint-template>
<fk-constraint-template>ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5)</fk-constraint-template>
<alias-header-prefix>t</alias-header-prefix>
|