bigserial data type working weird in pgsqldataadpter
Posted: Tue 20 Nov 2007 06:10
Have any of you tried the pgsqldataadapter wizard with one of your column as bigserial , primary key.
I believe pgsqldataadapter is broken try this small test
1. Create a table test_serial in any of your existing database
2. Now on a new form for VB.net drop a datagrid view
3. run the wizard for pgsqldataadapter create a connection / use exixting one and select all the colums for the test_serial on the bottom right drop down make sure you select dataadapter
4. On the next step Rename the columns to what you want to display on datagrid like No for id and Name for name.
5.Generate and add the component to the current form
6. In load event (Double click on form) of the form write
Or
pgsqldataadapter1 change to your dataadapter name on form
dataset11 change to your dataset
build and execute the form ,
Did you see the data in the grid
NO
Please report this back. I am struggling with this problem.
Using VB.net2005 sp1
PgSQLDirect 3.25.20.0
I believe pgsqldataadapter is broken try this small test
1. Create a table test_serial in any of your existing database
Code: Select all
create table test_serial(id bigserial primary key not null, name varchar(30));
insert into test_serial(name) values('jony');
insert into test_serial(name) values('jony2');
insert into test_serial(name) values('jony3');
3. run the wizard for pgsqldataadapter create a connection / use exixting one and select all the colums for the test_serial on the bottom right drop down make sure you select dataadapter
4. On the next step Rename the columns to what you want to display on datagrid like No for id and Name for name.
5.Generate and add the component to the current form
6. In load event (Double click on form) of the form write
Code: Select all
pgsqldataadapter1.fill(dataset11,"temp_table")
pgsqldataadapter1 change to your dataadapter name on form
dataset11 change to your dataset
build and execute the form ,
Did you see the data in the grid
NO
Please report this back. I am struggling with this problem.
Using VB.net2005 sp1
PgSQLDirect 3.25.20.0