select delivers wrong rowid
Posted: Mon 12 Aug 2019 09:14
On one of our customers database a select delivers the wrong rowid. The C# Code looks like this
var conn = new OracleConnection();
conn.Server = "1.1.1.1";
conn.Sid = "XXX";
conn.UserId = "xxx";
conn.Password = "xxx";
conn.Direct = true;
conn.Port = 1521;
conn.Open();
var dt = new DataTable();
var adp = new OracleDataAdapter("select smtp_server, rowid from ext_allgemein", conn);
adp.Fill(dt);
MyDataGrid.ItemsSource = dt.DefaultView;
conn.Close();
MyDataGrid.ItemsSource = dt.DefaultView;
conn.Close();
When I execute the select with the same user on PL/SQL-Developer the rowid is "AGsYahAAGAAAzirAAA". Executing the same select with the code above the rowid is "AAGsYahAAGAAAzirAAA". Just the "G" changes to an "A". We are sure that we are on the correct database because if we change the value of the "SMTP_SERVER" column with PL/SQL Developer to anything else it is also shown in the code (DataTable) above but the rowid is still wrong. We use this rowid for an update and got the invalid rowid exception. We can reproduce this only on one of our customers database. There is not other Table or View with the same name on the database etc.
DB-Version: 12.1.0.2.0
Devart Version: 9.7.734
Do you have any idea?
var conn = new OracleConnection();
conn.Server = "1.1.1.1";
conn.Sid = "XXX";
conn.UserId = "xxx";
conn.Password = "xxx";
conn.Direct = true;
conn.Port = 1521;
conn.Open();
var dt = new DataTable();
var adp = new OracleDataAdapter("select smtp_server, rowid from ext_allgemein", conn);
adp.Fill(dt);
MyDataGrid.ItemsSource = dt.DefaultView;
conn.Close();
MyDataGrid.ItemsSource = dt.DefaultView;
conn.Close();
When I execute the select with the same user on PL/SQL-Developer the rowid is "AGsYahAAGAAAzirAAA". Executing the same select with the code above the rowid is "AAGsYahAAGAAAzirAAA". Just the "G" changes to an "A". We are sure that we are on the correct database because if we change the value of the "SMTP_SERVER" column with PL/SQL Developer to anything else it is also shown in the code (DataTable) above but the rowid is still wrong. We use this rowid for an update and got the invalid rowid exception. We can reproduce this only on one of our customers database. There is not other Table or View with the same name on the database etc.
DB-Version: 12.1.0.2.0
Devart Version: 9.7.734
Do you have any idea?