Page 1 of 1

PgSqlDataTable descendant does not delete old Columns

Posted: Sun 02 Oct 2016 13:35
by chris901
Hello,

Postgres 9.5 and latest dotConnect version installed.

Steps to reproduce:

1. Create a descendant of PgSqlDataTable:

Code: Select all

    public partial class MyDataTable : Devart.Data.PostgreSql.PgSqlDataTable
    {
        public MyDataTable()
        {
        }
    }
2. Drop a PgSqlDataTable and MyDataTable on the form and connect them with PgSqlConnection
3. Insert SelectCommand for both:

Code: Select all

select '1' as First,
       '2' as Second;
4. Create Columns for both: http://i.imgur.com/KjEVwHv.jpg
5. Change the SelectCommand for both:

Code: Select all

select '1' as First,
       '3' as Third,
       '5' as Fifth;
6. Recreate the Columns.
7. "Press Yes to delete existing columns and create new ones" - Press Yes.
8. Here is the result: http://i.imgur.com/o5kBAWH.jpg

As you can see the original PgSqlDataTable correctly removed the DataColumn "second" as it is no longer in the query statement.

However the column is not deleted in the descendant.

Re: PgSqlDataTable descendant does not delete old Columns

Posted: Tue 04 Oct 2016 13:49
by Pinturiccio
We have reproduced the issue. We will investigate it and post here about the results as soon as possible.

Re: PgSqlDataTable descendant does not delete old Columns

Posted: Wed 05 Oct 2016 09:29
by Pinturiccio
We have fixed the bug with old columns left in a PgSqDataTable descendant when recreating columns. We will post here when the corresponding build of dotConnect for PostgreSQL is available for download.

Re: PgSqlDataTable descendant does not delete old Columns

Posted: Thu 06 Oct 2016 15:30
by Pinturiccio
New build of dotConnect for PostgreSQL 7.6.753 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to viewtopic.php?t=34382

Re: PgSqlDataTable descendant does not delete old Columns

Posted: Fri 07 Oct 2016 05:24
by chris901
Just installed, working fine! :)