Npgsql
denodoビューへの更新ステートメントの実行は、次の構文エラーとして失敗しました
"ERROR: : Syntax error: Exception parsing query near '''". When debug, I saw below translated sql statement which was pass to denodo from Npgsql parser.
"update testdenodoupdate set TestValue = ((E'aa')::text) where id = ((1)::int4);"
denodo
ステートメントを認識できなかったため、失敗しました。
他の代替ソリューションはありますか?以下のように提供される私のテストコード:
NpgsqlConnection conn = new NpgsqlConnection("Server=xx.xx.xx.xx;Port=9996;Database=xxx;User Id=xx;Password=xx;CommandTimeout=40;");
conn.Open();
NpgsqlCommand command = new NpgsqlCommand("update testdenodoupdate set TestValue = :TestValue where id = :id;", conn);
command.Parameters.Add(new NpgsqlParameter("TestValue", NpgsqlTypes.NpgsqlDbType.Text));
command.Parameters[0].Value = "aa";
command.Parameters[0].SourceColumn = "TestValue";
command.Parameters.Add(new NpgsqlParameter("id", NpgsqlTypes.NpgsqlDbType.Integer));
command.Parameters[1].Value = 1;
command.Parameters[1].SourceColumn = "id";
ssUpdatedRows = command.ExecuteNonQuery();