mail-archives/mono-bugs/2006-February/038979.html

120 строки
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 77480][Nor] New - DBDataAdapter is setting schema
NotNull on columns when Fill is called, but not setting DefaultValue
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077480%5D%5BNor%5D%20New%20-%20DBDataAdapter%20is%20setting%20schema%0A%09NotNull%20on%20columns%20when%20Fill%20is%20called%2C%20but%20not%20setting%20DefaultValue&In-Reply-To=bug-77480%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="038978.html">
<LINK REL="Next" HREF="038980.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 77480][Nor] New - DBDataAdapter is setting schema
NotNull on columns when Fill is called, but not setting DefaultValue</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2077480%5D%5BNor%5D%20New%20-%20DBDataAdapter%20is%20setting%20schema%0A%09NotNull%20on%20columns%20when%20Fill%20is%20called%2C%20but%20not%20setting%20DefaultValue&In-Reply-To=bug-77480%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 77480][Nor] New - DBDataAdapter is setting schema
NotNull on columns when Fill is called, but not setting DefaultValue">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Mon Feb 6 00:39:23 EST 2006</I>
<P><UL>
<LI>Previous message: <A HREF="038978.html">[Mono-bugs] [Bug 77364][Wis] Changed -
System.Runtime.Remoting.Messaging.MethodCall.LogicalCallContext
difference to MS.NET
</A></li>
<LI>Next message: <A HREF="038980.html">[Mono-bugs] [Bug 74932][Maj] Changed - Cast fails under MacOS 10.4
when it should succeed.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#38979">[ date ]</a>
<a href="thread.html#38979">[ thread ]</a>
<a href="subject.html#38979">[ subject ]</a>
<a href="author.html#38979">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">michael at codecobblers.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=77480">http://bugzilla.ximian.com/show_bug.cgi?id=77480</A>
--- shadow/77480 2006-02-06 00:39:23.000000000 -0500
+++ shadow/77480.tmp.30945 2006-02-06 00:39:23.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 77480
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Data
+AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">tsenganal at novell.com</A>
+ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">michael at codecobblers.com</A>
+QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: DBDataAdapter is setting schema NotNull on columns when Fill is called, but not setting DefaultValue
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+In version 1.1.13, the DBDataAdapter is retrieving the SQL schema and
+setting the NotNull flag on the columns of the table when Fill is called.
+It is not setting the DefaultValue. It should not be setting either one
+unless the caller has specified to do so.
+
+Steps to reproduce the problem:
+1. Create a DBDataAdapter (from whatever connector used to access SQL)
+2. Fill a DataTable using a select from a SQL table which has a column that
+is marked NotNull, but is not a Primary Key
+3. Insert a new row in the resultant DataTable, but do not set that column.
+ Mono 1.1.13 will generate an exception that the column in question cannot
+be null. This worked correctly in 1.1.10
+
+Actual Results:
+Exception
+
+Expected Results:
+Inserting new row works
+
+How often does this happen?
+100%
+
+Additional Information:
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="038978.html">[Mono-bugs] [Bug 77364][Wis] Changed -
System.Runtime.Remoting.Messaging.MethodCall.LogicalCallContext
difference to MS.NET
</A></li>
<LI>Next message: <A HREF="038980.html">[Mono-bugs] [Bug 74932][Maj] Changed - Cast fails under MacOS 10.4
when it should succeed.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#38979">[ date ]</a>
<a href="thread.html#38979">[ thread ]</a>
<a href="subject.html#38979">[ subject ]</a>
<a href="author.html#38979">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>