parent
57fc79f081
commit
350aea1253
|
@ -16,17 +16,23 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.process;
|
package org.compiere.process;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.math.BigDecimal;
|
||||||
import java.math.*;
|
import java.sql.Connection;
|
||||||
import java.util.logging.*;
|
import java.sql.DatabaseMetaData;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
import org.compiere.model.*;
|
import org.compiere.model.MColumn;
|
||||||
import org.compiere.util.*;
|
import org.compiere.model.MTable;
|
||||||
|
import org.compiere.util.AdempiereUserError;
|
||||||
|
import org.compiere.util.CLogger;
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
import org.compiere.util.ValueNamePair;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synchronize Column with Database
|
* Synchronize Column with Database
|
||||||
*
|
*
|
||||||
* @author Victor P<EFBFBD>rez, Jorg Janke
|
* @author Victor Perez, Jorg Janke
|
||||||
* @version $Id: ColumnSync.java,v 1.2 2006/07/30 00:51:01 jjanke Exp $
|
* @version $Id: ColumnSync.java,v 1.2 2006/07/30 00:51:01 jjanke Exp $
|
||||||
*/
|
*/
|
||||||
public class ColumnSync extends SvrProcess
|
public class ColumnSync extends SvrProcess
|
||||||
|
@ -77,14 +83,14 @@ public class ColumnSync extends SvrProcess
|
||||||
String catalog = DB.getDatabase().getCatalog();
|
String catalog = DB.getDatabase().getCatalog();
|
||||||
String schema = DB.getDatabase().getSchema();
|
String schema = DB.getDatabase().getSchema();
|
||||||
String tableName = table.getTableName();
|
String tableName = table.getTableName();
|
||||||
if (DB.isOracle())
|
if (md.storesUpperCaseIdentifiers())
|
||||||
|
{
|
||||||
tableName = tableName.toUpperCase();
|
tableName = tableName.toUpperCase();
|
||||||
|
}
|
||||||
// begin vpj-cd e-evolution 08/01/2005 PostgreSQL
|
else if (md.storesLowerCaseIdentifiers())
|
||||||
if (DB.isPostgreSQL())
|
{
|
||||||
tableName = tableName.toLowerCase();
|
tableName = tableName.toLowerCase();
|
||||||
// end vpj-cd e-evolution 08/01/2005 PostgreSQL
|
}
|
||||||
|
|
||||||
int noColumns = 0;
|
int noColumns = 0;
|
||||||
String sql = null;
|
String sql = null;
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue