Problem with NULL values

  • Thread starter Thread starter Jonas Hansson
  • Start date Start date
J

Jonas Hansson

Hi,
I have a problem regarding NULL values in a database when I retrieve the
data with the MySqlDataAdapter fill a DataSet with the returned value.
Whenever the SQL statement returns data that has a column of which the
first row has the value NULL, that whole column will be NULL for all
retrieved rows. Do I have to set a specific value in the
DataSet/MySqlDataAdapter for it to work as expected or is it a bug or is
it somehow supposed to work this way?
 
This sounds like something out of the ordinary, I've never experienced
anything similar.

The data table isolates all rows from each other and should not "remeber"
column data from previous rows.

Either this is a bug in the MySqlDataAdapter or your query is somewhat
strange.
 
This sounds like something out of the ordinary, I've never experienced
anything similar.

The data table isolates all rows from each other and should not "remeber"
column data from previous rows.

Either this is a bug in the MySqlDataAdapter or your query is somewhat
strange.

I guess it's a bug in the MySqlDataAdapter then :/, because if I
copy/paste my SQL statement(s) directly into my db-client then it returns
all the values as I expect them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top