[pgsqlclient-checkins] pgsqlclient/PostgreSql.Data.PGSqlClient/source PGCommandBuilder.cs,1.2,1.3
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-07-14 11:57:31
|
Update of /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source In directory sc8-pr-cvs1:/tmp/cvs-serv13362 Modified Files: PGCommandBuilder.cs Log Message: Added better handling of table names. Index: PGCommandBuilder.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient/PostgreSql.Data.PGSqlClient/source/PGCommandBuilder.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PGCommandBuilder.cs 14 Jul 2003 10:28:49 -0000 1.2 --- PGCommandBuilder.cs 14 Jul 2003 11:57:25 -0000 1.3 *************** *** 481,485 **** private PGParameter createParameter(DataRow schemaRow, int index, bool isWhereParameter) { ! PGParameter parameter = new PGParameter(String.Format("@p{0}", index), (PGDbType)schemaRow["ProviderType"]); parameter.Size = Convert.ToInt32(schemaRow["ColumnSize"]); --- 481,485 ---- private PGParameter createParameter(DataRow schemaRow, int index, bool isWhereParameter) { ! PGParameter parameter = new PGParameter(String.Format("@param_{0}", index), (PGDbType)schemaRow["ProviderType"]); parameter.Size = Convert.ToInt32(schemaRow["ColumnSize"]); *************** *** 596,602 **** if (tableName.Length == 0) { ! tableName = (string)schemaRow["BaseTableName"]; } ! if (tableName != (string)schemaRow["BaseTableName"] && !(bool)schemaRow["IsExpression"]) { --- 596,603 ---- if (tableName.Length == 0) { ! tableName = (string)schemaRow["BaseSchemaName"] + "." + ! (string)schemaRow["BaseTableName"]; } ! if (tableName != (string)schemaRow["BaseSchemaName"] + "." + (string)schemaRow["BaseTableName"] && !(bool)schemaRow["IsExpression"]) { |