[pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgDataReader.cs,1.4,1.5
Status: Inactive
Brought to you by:
carlosga_fb
From: <car...@us...> - 2003-08-03 12:01:14
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1:/tmp/cvs-serv1275 Modified Files: PgDataReader.cs Log Message: Fix problem with latest changes fo Autoincrement fields. Index: PgDataReader.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgDataReader.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PgDataReader.cs 3 Aug 2003 10:21:25 -0000 1.4 --- PgDataReader.cs 3 Aug 2003 12:01:11 -0000 1.5 *************** *** 248,253 **** schemaRow["IsRowVersion"] = false; schemaRow["IsUnique"] = false; - schemaRow["IsReadOnly"] = (bool)columnInfo[10]; - schemaRow["IsAutoIncrement"] = (bool)columnInfo[10]; schemaRow["IsAliased"] = isAliased(i); schemaRow["IsExpression"] = isExpression(i); --- 248,251 ---- *************** *** 255,258 **** --- 253,258 ---- if (columnInfo != null) { + schemaRow["IsReadOnly"] = (bool)columnInfo[10]; + schemaRow["IsAutoIncrement"] = (bool)columnInfo[10]; schemaRow["IsKey"] = isPrimaryKey(pKeyInfo, (short)columnInfo[6]); schemaRow["AllowDBNull"] = ((bool)columnInfo[9]) ? false : true; *************** *** 263,266 **** --- 263,268 ---- else { + schemaRow["IsReadOnly"] = false; + schemaRow["IsAutoIncrement"] = false; schemaRow["IsKey"] = false; schemaRow["AllowDBNull"] = System.DBNull.Value; |