473,378 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem with NULL values

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?

--
Jonas
Nov 16 '05 #1
2 1288
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.

--
Patrik Löwendahl [C# MVP]
www.cshrp.net - "Elegant code by witty programmers"

"Jonas Hansson" <fa**@bogus.com> wrote in message
news:opsfmoojnqs7evie@randag...
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?

--
Jonas

Nov 16 '05 #2
On Sun, 10 Oct 2004 13:30:21 +0200, Patrik Löwendahl [C# MVP]
<pa**************@csharpsweden.com> wrote:
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.

--
Jonas
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: sinasalek | last post by:
i have a problem with MySQL 4.1.x and UTF8. in version 4.0, i'm using html forms with utf8 charset for inserting unicode strings. but in version 4.1.x it is not working! if i change the charset of...
0
by: Dean A. Hoover | last post by:
I am doing a contract job for a client with some existing messy data. I am trying to find a solution to a problem of many-to-many mappings between two tables in a database. See below for my...
2
by: Gunnar Vøyenli | last post by:
Hi Some days ago I posted a problem with a query. Thaks to Dave and John, I got a little closer to a solution. Their suggestion was a solution to my problem as I stated it, but the real problem...
6
by: scott | last post by:
i've come across a real head-hurter. I'm looping through a recordset and response.writing it's rows out with no problem except 1 field. The field type is varchar and contains words like meeting,...
3
by: Myron | last post by:
I'm trying to create a query that will tell me which requests took longer than 10 days to move one from particular state to another state. The query I've created returns the correct requests, but...
4
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
2
by: mob1012 via DBMonster.com | last post by:
Hi All, I wrote last week about a trigger problem I was having. I want a trigger to produce a unique id to be used as a primary key for my table. I used the advice I received, but the trigger is...
10
by: Rudolf Bargholz | last post by:
Perhaps some kind soul could help me out with an SQL I have been trying all day to get to work, where one colum is just not summing up the way I want it to. I have the following data GRP_SEQ ...
0
by: ZoeNet | last post by:
Hi all, The table structures are below. The table category_cat is built on the adjacency model (where the parent and child entries are both stored in the same table). For my problem, I've...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.