[ 1895357 ] SignDatabaseBuild - Transaction read-only Error
This commit is contained in:
parent
39b03c5457
commit
65bf35e5d4
|
@ -680,25 +680,25 @@ public final class DB
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* Prepare Read Only Statement
|
* Prepare Statement
|
||||||
* @param RO_SQL sql (RO)
|
* @param sql
|
||||||
* @return Prepared Statement
|
* @return Prepared Statement
|
||||||
* @deprecated
|
* @deprecated
|
||||||
*/
|
*/
|
||||||
public static CPreparedStatement prepareStatement (String RO_SQL)
|
public static CPreparedStatement prepareStatement (String sql)
|
||||||
{
|
{
|
||||||
return prepareStatement(RO_SQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, null);
|
return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE, null);
|
||||||
} // prepareStatement
|
} // prepareStatement
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare Read Only Statement
|
* Prepare Statement
|
||||||
* @param RO_SQL sql (RO)
|
* @param sql
|
||||||
* @param trxName transaction
|
* @param trxName transaction
|
||||||
* @return Prepared Statement
|
* @return Prepared Statement
|
||||||
*/
|
*/
|
||||||
public static CPreparedStatement prepareStatement (String RO_SQL, String trxName)
|
public static CPreparedStatement prepareStatement (String sql, String trxName)
|
||||||
{
|
{
|
||||||
return prepareStatement(RO_SQL, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, trxName);
|
return prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE, trxName);
|
||||||
} // prepareStatement
|
} // prepareStatement
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -733,12 +733,12 @@ public final class DB
|
||||||
} // prepareStatement
|
} // prepareStatement
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Read Only Statement
|
* Create Statement
|
||||||
* @return Statement
|
* @return Statement
|
||||||
*/
|
*/
|
||||||
public static Statement createStatement()
|
public static Statement createStatement()
|
||||||
{
|
{
|
||||||
return createStatement (ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, null);
|
return createStatement (ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE, null);
|
||||||
} // createStatement
|
} // createStatement
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue