PgSqlLoader Error Event
Posted: Sun 29 Jun 2008 20:02
Hi there,
I have a problem with the PgSqlLoader. I'm trying to load into a database that has a not null constraint on a column (e.g., "date_created"). Say I forget to set the value of the "date_created" column, I should get an error to PgSqlLoader.Error, right? I don't seem to be firing this event. Is this a bug, or am I using it wrong?
this.pgSqlLoader = new CoreLab.PostgreSql.PgSqlLoader();
this.pgSqlLoader.Connection = this.pgSqlConnection;
this.pgSqlLoader.TableName = "pgsqlnet_loader";
this.pgSqlLoader.Error += delegate(object sender, PgSqlLoaderErrorEventArgs e)
{
throw new NotImplementedException("LOADER ERROR");
};
pgSqlLoader.Open();
...
pgSqlLoader.Close();
No errors, but nothing gets in the db either!
Thanks in advance,
-Craig
I have a problem with the PgSqlLoader. I'm trying to load into a database that has a not null constraint on a column (e.g., "date_created"). Say I forget to set the value of the "date_created" column, I should get an error to PgSqlLoader.Error, right? I don't seem to be firing this event. Is this a bug, or am I using it wrong?
this.pgSqlLoader = new CoreLab.PostgreSql.PgSqlLoader();
this.pgSqlLoader.Connection = this.pgSqlConnection;
this.pgSqlLoader.TableName = "pgsqlnet_loader";
this.pgSqlLoader.Error += delegate(object sender, PgSqlLoaderErrorEventArgs e)
{
throw new NotImplementedException("LOADER ERROR");
};
pgSqlLoader.Open();
...
pgSqlLoader.Close();
No errors, but nothing gets in the db either!
Thanks in advance,
-Craig