* ConvertTest.cs: Added new parsing tests including special case for
Convert.ToSByte.
* Int64Test.cs: Added new test cases for overflows.
svn path=/trunk/mcs/; revision=28444
removed TODO
* System.Messaging/MessageQueueErrorCode.cs: fixed typo
* System.Messaging/MessageQueueAccessRights.cs: removed extra
enum field
svn path=/trunk/mcs/; revision=28438
* Npgsql/NpgsqlConnection.cs: Added workaround for redhat server versions.
It returns 7.3.4-RH as its server version. Thanks Jaroslaw Kowalski
([email protected]) for the patch.
svn path=/trunk/mcs/; revision=28437
* expression.cs (MemberAccess.ResolveMemberAccess): If we're an
EventExpr, set `ee.InstanceExpression = left'. Fixes#59188.
* ecore.cs (EventExpr.instance_expr): Make the field private.
svn path=/trunk/mcs/; revision=28431
* Zip/Compression/DeflaterHuffman.cs (FlushBlock): Add some
parenthesis to help the generics compiler read this source.
svn path=/trunk/mcs/; revision=28419
* icall.c
(ves_icall_System_Reflection_Assembly_GetReferencedAssemblies):
Set the full version number (major, minor, build, revision).
svn path=/trunk/mono/; revision=28407
of the issues I found with the pnet Coding Developers (Dining
Philosophers) sample app. We now at least draw on screen :-)
svn path=/trunk/mcs/; revision=28390
* Convert.cs: Fixed integer parsing for special cases (0x, 0X for base
16), non-base 10 negative numbers ... see new unit tests.
svn path=/trunk/mcs/; revision=28389
* Statement.cs: changed parent_is_itr_stm method to ParentIsItrStm
property. Added initial pieces for Break's Resolve. Fixed bug that
did not let Emit the code for case clauses that came after the
default clause (we match the jsc behavior).
svn path=/trunk/mcs/; revision=28376
* marshal.c (emit_struct_conv): increment src/dst after blit
(mono_marshal_get_managed_wrapper,
mono_marshal_get_native_wrapper): make sure we have marshalling
info before marshalling params (info computation affects
blittable)
* class.c (class_compute_field_layout): correctly deal with
blittable
(mono_class_layout_fields): Don't do gc_aware_layout for AUTO
value types (as per what windows dows by default)
(mono_class_setup_mono_type): System.ValueType is blittable
(mono_ptr_class_get, mono_fnptr_class_get): Pointer classes are
blittable
* marshal.c (mono_marshal_load_type_info): flag types as
non-blittable if the native layout doesn't match the managed
layout
svn path=/trunk/mono/; revision=28375
* appdomain.c: don't add stuff in the private search path that is
above the application base. If application base is not set, there's
no private search path.
svn path=/trunk/mono/; revision=28374
* mini.c (mono_jit_runtime_invoke): Init class in this
method instead of trusting mono_jit_compile_method to
do the work (because wrappers can be in object class)
svn path=/trunk/mono/; revision=28359
* marshal.c (mono_marshal_get_runtime_invoke): correctly
cache methods using signature (special case for methods
that are value type or string class)
* image.c (mono_image_close): clean up allocated GSList's
in runtime_invoke_cache.
svn path=/trunk/mono/; revision=28358
* mono-config.c: set the correct path for mono_cfg_dir on windows when
there's no MONO_CFG_DIR environment variable defined.
svn path=/trunk/mono/; revision=28357
is interrumped.
* threads.c: In mono_thread_manage, call OpenThread to ref each handle
before waiting for it, and call CloseHandle after the wait to unref it.
This will make sure that handles are not disposed too early.
svn path=/trunk/mono/; revision=28343
* DateTime.cs :
- In ToString(), Don't use culture-dependent daynames to format
Universal/RFC1123 date/time. Also, use FullDateTimePattern for 'U'.
- Fixed GetDateTimeFormats () that generated incorrect 'U' value
(since the format string is the same as 'F').
svn path=/trunk/mcs/; revision=28339
rectangles.
* Graphics.cs: Implemented Dispose method and changed Draw/Fill
rectangles implementation (This is basically done to avoid lots
of brush and pen setup happening in libgdiplus.)
svn path=/trunk/mcs/; revision=28336
* System.Data.OracleClient/OracleCommandBuilder.cs:
Fixed namespace.
* System.Data.OracleClient.dll.sources:
Added OracleCommandBuilder.cs.
2004-05-26 Joerg Rosenkranz <[email protected]>
* System.Data.OracleClient.Oci/OciDefineHandle.cs:
Merged in a fix send by Rogerio Pereira Araujo
<[email protected]>: Fixed a bug with NUMBER data type
when no parameter is passed to OracleCommand.
svn path=/trunk/mcs/; revision=28333
* DateTime.cs : don't adjust utc value in ToString(). It must output
the same time value, just adding 'Z' for UTC.
svn path=/trunk/mcs/; revision=28332
* appdomain.c:
* appdomain.h:
* icall.c: removed
ves_icall_System_AppDomainSetup_InitAppDomainSetup as it's not
needed now.
* object.c: se the application_base only for the domain that
runs Main. Fixes bug #59216,
svn path=/trunk/mono/; revision=28325
* appdomain.c:
* object.c: only the domain in which Main is run have
SetupInformation.ConfigurationFile set, so moved a few lines from
appdomain.c to object.c.
svn path=/trunk/mono/; revision=28324
* appdomain.c: we tried to load [name].(dll|exe), but according
to bug #57710, we must also try [culture]/[name].(dll|exe) and
[culture]/[name]/[name](dll|exe). This patch fixes the bug.
There's a test case attached to bug #58922.
svn path=/trunk/mono/; revision=28323
* Byte.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt16.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt32.cs: Fixed parsing for "-0" which is valid for unsigned types.
* UInt64.cs: Fixed parsing for "-0" which is valid for unsigned types.
svn path=/trunk/mcs/; revision=28320
* X509Certificate.cs: Rethrow original exception when parsing X.509
certificates (inside a CryptographicException) so people can see if
their changes affects certificate decoding.
svn path=/trunk/mcs/; revision=28319
* DigestClient.cs: cache the sessions based on address and
credentials, not only address. Added poor men's expiration to
the session cache. Fixes bug #59202.
svn path=/trunk/mcs/; revision=28316
* icall.c (ves_icall_System_Text_Encoding_InternalCodePage): The
test was broken, just make sure that codepage contains utf-8
string.
svn path=/trunk/mono/; revision=28306
* SortedList.cs: Added missing ICloneable support to internal
enumerator. Added Capacity to the synchronized version of SortedList.
svn path=/trunk/mcs/; revision=28303
* QueueTest.cs: Test for synchronized clones.
* SortedListTest.cs: Added cases for synchronized capacity and testing
the interface from the internal enumerator.
svn path=/trunk/mcs/; revision=28302
* DateTime.cs :
- Added "yyyy/MM/dd HH:mm:ss 'GMT'" and "yyyy-MM-dd HH:mm:ss 'GMT'"
to common formats (yes, I know it is nothing more than hack)
- Fixed some GetDateTimeFormats() that just returned patterns.
- For InvariantCulture, now try both supported formats and our
predefined formats.
- It was accepting incorrectly extraneous characters. That caused
some UTC/non-UTC bug.
- RFC1123 string should return universal time. Uncomment again (the
problem should went away because of the extra characters fix above.
With some of the changes above, fixed bug #47720.
svn path=/trunk/mcs/; revision=28288
* io.h:
* io.c: Implemented LockFile() and UnlockFile()
2004-05-27 Dick Porter <[email protected]>
* icall.c:
* file-io.c: Implemented icalls for locking and unlocking regions
in a file.
(ves_icall_System_IO_MonoIO_FindNextFile): FindNextFile() returns
FALSE on error (fixes both compiler warning and real bug.)
svn path=/trunk/mono/; revision=28284
* DateTimeFormatInfo.cs : Added some string[] fields for
GetAllDateTimePatterns(char). The fields will be filled in metadata
and culture info table. Added improved patterns for
GetAllDateTimePatterns() (right now works only for invariant).
* CultureInfo.cs : Use InvariantInfo for InvariantCulture.
svn path=/trunk/mcs/; revision=28282
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
Cache.cs : Fixed deadlock issues, fixed
items not correctly being flushed, fixed update
of item when expiration has been updated more
than 1 min (placed in wrong bucket),
fixed deadlock during cache callback when item
is removed due to expiriation.
Rewrite of locking handling in Cache class, leading
to better performance and less bugs.
This rewrite is due to a number of bugs found
in the output caching during load (leading to memory
leaks and deadlocks)
svn path=/trunk/mcs/; revision=28254
- CheckReadOnlyStatus : use typed (and faster comparing).
- EndEdit : bug fix - do not dispose record if it holds original version.
- SetValuesFromDataRecord : Take care about autoincrement columns.
svn path=/trunk/mcs/; revision=28249
* XmlTextReaderTests.cs : added test for bug #59142.
* XmlTextWriterTests.cs : added test for bug #59154.
* XmlDocumentTests.cs : added test for bug #59155.
svn path=/trunk/mcs/; revision=28238
* DefaultContext.cs : Add XPathNavigator input support for ToBoolean()
and ToNavigator().
* Expression.cs : In Equality comparison, evaluate XPathNavigator in
the same as well as NodeSet. This fixes bug #59134.
svn path=/trunk/mcs/; revision=28237
* XmlDataInferenceLoader.cs : Namespace are not imported to the table
structure. Thanks to Boris Kirzner for the fix.
svn path=/trunk/mcs/; revision=28235
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
is false. Fixed bug #59155.
Modified comment lines a bit.
svn path=/trunk/mcs/; revision=28234
* XmlTextReader.cs : simplified ReadCharsInternal(); use ReadEndTag()
and don't bork against <foo></foo>. Also mofidied this method to skip
<foo/>. Fixed bug #59142.
Modified some comments on the code (FIXME->LAMESPEC et al).
svn path=/trunk/mcs/; revision=28229
* FileStream.cs: delay seeking to the end when FileMode.Append is
specified until after buffer initialization. Fixes bug #59151.
svn path=/trunk/mcs/; revision=28222
* category.cs: added LastValue field to mark the end of enum Category.
* syntax.cs: in CharacterClass, use Category.LastValue to get the size
of the array needed. Use a BitArray instead of bool[].
In AddCategory(), don't set the opposite category as false. Fixes
bug #59150. All tests pass.
svn path=/trunk/mcs/; revision=28218
* Syscall.cs: Do not let the runtime handle strings, as we do not
own those strings, we must transform the char * into a string
ourselves.
svn path=/trunk/mcs/; revision=28200
* HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
chunked encoding disabled. Fixed chunked suffix and end. Send the
'lastchunk' marked when in the final Flush even if the content length
is 0. This makes mod-mono-server work fine with chunked encoding.
* HttpRuntime.cs: Set the _firstRequest* variables to true
earlier. TraceContext don't take any parameter now.
* TraceManager.cs: don't need a context. Use GetAppConfig.
svn path=/trunk/mcs/; revision=28186
* driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
since driver.c is in libmono too, so the optimization was useless.
svn path=/trunk/mono/; revision=28184
the IMessage, and add IMessage properties as headers when creating the
SoapMessage. LogicalCallContext info will be passed as a header value.
svn path=/trunk/mcs/; revision=28178
* DateTime.cs :
- Added "yyyy-MM-dd HH:mm:ss" to "compatible patterns".
(Fixed bug #58938.)
- As a quick remedy to accept more patterns, Parse() now also tries
InvariantInfo patterns (this is because we have no more than one
pattern for each pattern component.)
- In _DoParse(), 'Z' should not be read as timezone specifier. Some
culture uses 'Z' as AM/PM designer, and it should be recognized as
part of the UTCpattern (if it actually UTC pattern for the culture
contains 'Z').
svn path=/trunk/mcs/; revision=28177
* BufferedStream.cs: Added globalization and fixed exceptions and
possible integer overflow.
* TextWriter.cs: Fixed possible integer overflow.
svn path=/trunk/mcs/; revision=28172
* Byte.cs: Throw an OverflowException for negative numbers.
* Convert.cs: Accept 0x and 0X as prefix when parsing base16 strings.
svn path=/trunk/mcs/; revision=28160
In encoded format, primitive types can be null. Read them using
ReadReferencingElement, that already checks for the null tag.
svn path=/trunk/mcs/; revision=28157
* driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
variable to driver.c so the compiler can emit more efficient code to
access them.
svn path=/trunk/mono/; revision=28152
* Driver.cs : for af_ZA locale, am/pm part got required to support
"empty" string. So check am/pm elements and overwrite AMDesigner/
PMDesigner value even if they consist of empty string.
* (moved logs for supp/ content to supp/)
svn path=/trunk/mono/; revision=28149
* RNGCryptoServiceProvider.cs: Changed RNG interface with the runtime
so it could be used in a thread-safe way with CryptoAPI.
svn path=/trunk/mcs/; revision=28143
* SoapReader.cs: Added support for deserialization of headers. Cache
both member indexes and member infos in the new TypeMetadata structure.
* SoapWriter.cs: Added support for serialization of headers.
svn path=/trunk/mcs/; revision=28141
* UrlUtils.cs:
(GetFile): not public, and fixed to really return just the file name.
(InsertSessionId): ensure that the directory ends with a "/". This
fixes cookieless sessions.
svn path=/trunk/mcs/; revision=28109
* expression.cs
(MethodGroupExpr.IdenticalTypeName): New public property.
(Invocation.DoResolve): Don't report a CS0176 if the "instance"
expression actually refers to a type.
svn path=/trunk/mcs/; revision=28084
* System.Web/HttpApplication.cs: set culture/uiculture from
configuration and restore it after each step. Fixes bug #52851.
* System.Web.Configuration/GlobalizationConfiguration.cs: if we have no
context, use GetAppConfig instead of GetConfig.
svn path=/trunk/mcs/; revision=28081
* MethodBuilder.cs: Now use FastNewGuidArray to create new random
Guids without using CryptoConfig. Speed up for MCS.
svn path=/trunk/mcs/; revision=28069
* Guid.cs: Added an internal method to create a random Guid without
using CryptoConfig (which is heavy on first use). This is only used
in S.R.E.ModuleBuilder to speedup MCS compilation.
svn path=/trunk/mcs/; revision=28068
* ArrayTest.cs: Added tests to check for integer overflow in Clear,
Copy and Reverse.
* BitConverterTest.cs: Added test to check for possible integer
overflow in ToString (byte,int,int)
svn path=/trunk/mcs/; revision=28062
specified. The min bounds is set to -1, I am not completely sure
if that is what it is supposed to be but MS does not set it to 0
based on testing. Patch by [email protected]. Fixes bug
#56761.
svn path=/trunk/mcs/; revision=28061
* String.cs: Fixed reported exception for PadLeft|Right. Fixed
possible integer overflow in methods that takes index and count
as parameters.
svn path=/trunk/mcs/; revision=28060
* ConvertTest.cs: New tests for prefixed hexadecimal strings and
negative byte convertion.
* StringTest.cs: Added new tests for integer overflow and negatives.
svn path=/trunk/mcs/; revision=28042
* DateTime.cs : In ToString(string, IFormatProvider), use "G" if
string format argument is null. This should fix bug #57656.
svn path=/trunk/mcs/; revision=28037
* mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
of the mcrxr instruction which is not available on some processors
even if it's documented to be. Implement add and sub overflow correctly
(still not complete for long unsigned). Speed up icalls a bit.
svn path=/trunk/mono/; revision=28035
* mini.c (mono_jit_compile_method_with_opt): Make sure that
we run .cctor in the current domain instead of target_domain.
Fixes bug #58558, .cctor not being called in -O=shared.
svn path=/trunk/mono/; revision=28032
* System.Data.OracleClient/OracleCommand.cs:
* System.Data.OracleClient/OracleDataReader.cs:
* System.Data.OracleClient.Oci/OciStatementHandle.cs: patch by Eduard
Nesiba that implements autocommit behavior for non query statement
which is out of transaction. In previous implementation changed rows
stayed locked until client disconnect and hasRows proper settings.
svn path=/trunk/mcs/; revision=28019
* jscript-lexer-parser.g: added 'using' for
System.Collections. Allow 'switch' statement building of its
ast. Added parent parameter to constructor of With. Build
inside_for ast.
svn path=/trunk/mcs/; revision=28013
* DateTime.cs: allow double quotes in the formats. Don't set
next_not_digit to true in presence of single or double quotes. Patch by
Martin Probst.
svn path=/trunk/mcs/; revision=28011
- Added loading of comdlg32 for wine to enable usage of common dialogs.
- Moved the comdlg32 functions into the Win32 section
svn path=/trunk/mcs/; revision=28009
* Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
no files, but the directory was found. Fixes bug #58875.
svn path=/trunk/mcs/; revision=28005
* mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
which can be done with an imm8, do it that way.
(mono_arch_output_basic_block): ditto for a jmp
(mono_arch_emit_prolog): Computate maximum offset of a label.
svn path=/trunk/mono/; revision=28004
* StreamReader.cs: Add checks for null encoding. Fixed possible integer
overflow and ArgumentNullException in Read.
svn path=/trunk/mcs/; revision=28000
* enum.cs (Enum.DefineType): For the `BaseType' to be a
TypeLookupExpression; otherwise, report a CS1008. Fixes#58571.
svn path=/trunk/mcs/; revision=27999
* FileInfo.cs: Reformat the whole file to use DOS line endings.
(MoveTo): Return if the destination of Move is the same as the file's
current location.
svn path=/trunk/mcs/; revision=27996
* StreamWriter.cs: Add dispose check to Write(char) and Write(char[]),
AutoFlush. Fixed possible integer overflow in Write(char[],int,int).
svn path=/trunk/mcs/; revision=27993
* Directory.cs: Reformat the whole file to use Unix line endings
for consistency.
(GetFileSystemEntries): If pattern is String.Empty, always
return an empty string array. Throw the ArgumentException if path
is an empty string (determined using the new helper method)
(IsEmptyString): Returns true on an empty string or a string with
only whitespace characters.
* Path.cs (GetPathRoot): Throw an ArgumentException if the path
argument is String.Empty.
svn path=/trunk/mcs/; revision=27990
* mini-x86.c (mono_arch_local_regalloc): the reg allocator
now tries to allocate prefered physical reg's for virtual
regs. This reduces the number of emited spills/loads with
20-30% on our core assemblies.
svn path=/trunk/mono/; revision=27981
* MemoryStream.cs: Fixed exception reporting to match MS Fx. Fixed the
condition to allow zeroization of existing data when we shrink the
stream.
svn path=/trunk/mcs/; revision=27977
* MemoryStreamTest.cs: Test that we zeroize old data when we manipulate
the length of the stream. Verify that we throw the same exceptions as
MS fx.
svn path=/trunk/mcs/; revision=27974
* ecore.cs (SimpleName.SimpleNameResolve): Renamed to
DoSimpleNameResolve() and provide a SimpleNameResolve() wrapper
which does the CS0135 check. The reason is that we first need to
check whether the variable actually exists.
svn path=/trunk/mcs/; revision=27973
* class.cs (MemberBase.DoDefine): Use DeclSpace.FindType() rather
than RootContext.LookupType() to find the explicit interface
type. Fixes#58584.
svn path=/trunk/mcs/; revision=27972
* icall.c: Added define for CSIDL_FLAG_CREATE (0x8000) in case it is
missing in the windows build (like older cygwin include files).
svn path=/trunk/mono/; revision=27968
* XmlSchemaBuiltInDataypeTests.cs : 'Z' is not allowed here (maybe it
is 'T' that was wanted). More kind error message in Fail().
svn path=/trunk/mcs/; revision=27956
(LIBRARY_COMPILE) [!HAVE_SYSTEM_XML]: Use $(BOOT_COMPILE) for
non-Xml first build.
(all-local) [!SECOND_PASS]: Simplify.
svn path=/trunk/mcs/; revision=27950
($(the_lib)): Use $(LIBRARY_COMPILE) to compile $(the_lib).
* executable.make (uninstall-local): Use PROGRAM_INSTALL_DIR.
svn path=/trunk/mcs/; revision=27949
* NamedNodeMap.cs : Modified. "domestic or street" does not mean
the exact literal node name, but it means "either 'domestic' or
'street'". We always return fixed values.
svn path=/trunk/mcs/; revision=27944
* Document.cs : am sure that element nodes are up to 36, not 37
(maybe counting the element that is in unused entity value?).
svn path=/trunk/mcs/; revision=27943
* DTDReader.cs : When sequential PE references exist, the reader only
expands the first one and in some cases the parser complaints the
content (such like expecting name character but found '%').
This fixes bug #58818.
svn path=/trunk/mcs/; revision=27941
* decl.cs (DeclSpace.FindType): Only check the `using' list if we
don't have any dots. Fixes#52622, added cs0246-8.cs.
* namespace.cs (NamespaceEntry.Lookup): Likewise.
svn path=/trunk/mcs/; revision=27931
* Npgsql/NpgsqlConnection.cs: Fixed bug which prevented Npgsql to
connect to cvs built servers which had devel in its version string.
svn path=/trunk/mcs/; revision=27928
* Boolean.cs: Fixed Equals for True!=True (see bugzilla #58874).
* BitConverter.cs: Fixed negative index and integer overflow in
To... methods.
svn path=/trunk/mcs/; revision=27926
* BooleanTest.cs: Added new test to compare booleans using Equals
and == (case of True!=True). Converted to NUnit2 format.
svn path=/trunk/mcs/; revision=27925
* ecore.cs (SimpleName.SimpleNameResolve): Only report a CS0135 if
the variable also exists in the current block (otherwise, we need
to report a CS0103). Fixes#58670.
svn path=/trunk/mcs/; revision=27924
Fix bug #57835
* attribute.cs (AttributeTester.GetMethodObsoleteAttribute): Returns
instance of ObsoleteAttribute when symbol is obsolete.
* class.cs
(IMethodData): Extended interface for ObsoleteAttribute support.
svn path=/trunk/mcs/; revision=27917
* BitConverterTest.cs: Added new tests for negative integers and
integer overflow in To... methods. Added new boolean convertion
tests.
svn path=/trunk/mcs/; revision=27912
* RealProxy.cs: Moved async functionlity here, also take
care of custom proxies (non RemotingProxy) case for async and
construction calls.
* RemotingProxy.cs: allow RealProxy to call construction method and
remove end async control (moved to RealProxy)
Fixes remoting2/3 test case (mono/mono/tests) and closes bug #57672.
svn path=/trunk/mcs/; revision=27908
* FieldInfo.cs: changed default constructor from internal to protected, so classes
that inherit from it can get build.
svn path=/trunk/mcs/; revision=27892
* mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
should set carry.
* basic-long.cs: Add tests for add/subtract of immediates with carry.
svn path=/trunk/mono/; revision=27886
Npgsql/NpgsqlCommand.cs,
Npgsql/NpgsqlConnection.cs,
Npgsql/NpgsqlDataReader.cs,
Npgsql/NpgsqlException.cs,
Npgsql/NpgsqlTransaction.cs,
Npgsql/Design/ConnectionStringEditor.cs,
Npgsql/Design/ConnectionStringEditorForm.cs,
Npgsql/Design/NpgsqlParameterConverter.cs,
Npgsql/Design/NpgsqlParametersEditor.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs: Commit log by
Glen Parker ([email protected]): Bug #772 ("Using
Command and Prepare adds single quotes to strings twice")
is fixed :-) It was broken when running on the version 3
protocol (extended query support) on PostgreSQL 7.4.
Some of the files in Design were formatted with macintosh line
terminators. This was screwing up the xmldoc generator in csc,
so I reformatted to make it work.
I've added some essential xmldoc comments (<summary> tags). Much work
remains here, but I wanted to get a few in on common functions and
properties.
The .build file will now generate the Npgsql.xml file, next to the .dll
file. I removed the existing Npgsql.xml from CVS.
Thanks Glen Parker for this patch.
svn path=/trunk/mcs/; revision=27877
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27876
* mini.c (inline_method): Allways inline some wrappers even if the cost
is too large. Fixes#58785.
* mini.c: Add support for MARSHAL_CONV_FTN_DEL.
svn path=/trunk/mono/; revision=27874
Fix bug #52705
* attribute.cs
(GetObsoleteAttribute): New method. Creates the instance of
ObsoleteAttribute.
(AttributeTester.GetMemberObsoleteAttribute): Returns instance of
ObsoleteAttribute when method is obsolete.
(AttributeTester.Report_ObsoleteMessage): Common method for
Obsolete error/warning reporting.
* class.cs
(TypeContainer.base_classs_type): New member for storing parent type.
* decl.cs
(MemberCore.GetObsoleteAttribute): Returns instance of ObsoleteAttribute
for this MemberCore.
svn path=/trunk/mcs/; revision=27872
* UIntPtr.cs: We now only accept 32bits unsigned values in the ulong
constructor unless we're on a 64 bits machine.
svn path=/trunk/mcs/; revision=27865
consistency, converted it all to DOS endings.
(ToType): When value is null, immediately return null and don't ever
throw a NullReferenceException. When conversionType is null, throw an
InvalidCastException. Give a better error message when attempting to
convert to a DBNull as well.
svn path=/trunk/mcs/; revision=27856
* io.c (CreateFile): Check for existing share modes when opening
a file.
* handles.c:
* handles-private.h:
* daemon-messages.h:
* daemon.c: Maintain a hash of file share modes, keying on device
and inode (to cope with symlinks.)
svn path=/trunk/mono/; revision=27850
* tools/uni2tab.c : non JIS X 0208 characters could not be decoded.
(It is hack!)
* CJK/jis.table : updated using the latest uni2tab.c
svn path=/trunk/mcs/; revision=27845
* mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
([email protected]). Beginning of support for sparc/linux.
* mini-sparc.c: Optimize retrieval of LMF address.
svn path=/trunk/mono/; revision=27839
* TcpListener.cs: Fixes a lot of the problems with remoting nunit tests.
(AcceptTcpClient): Don't create TcpClient before a
connection is accepted.
(LocalEndPoint): Use Server LocalEndPoint if connected
otherwise use endpoint from ctor.
(Init): Save end point, not server endpoint. This did
cause TcpListener to ignore port sent via constructor.
(Pending): Fixed wait time (method should return directly)
(Start): Moved Bind here instead of Init method; old method
caused us to bind ports even if the listener was stopped.
(Stop): Null server when stopping
svn path=/trunk/mcs/; revision=27837
* flowanalysis.cs (FlowBranching.MergeTopBlock): Don't check for
out parameters if the end of the method is unreachable. Fixes
#58098.
svn path=/trunk/mcs/; revision=27831
* DataColumnCollection.cs : NullReferenceException was thrown when
the table was not found.
* DataRowCollection.cs :
Find() just returns null for null value under MS.NET 1.1.
RemoveAt() should also avoid to call AcceptChanges() like Remove().
* UniqueConstraint.cs : in AssertConstraint() throw ConstraintException
directly under MS.NET (for nunit test).
svn path=/trunk/mcs/; revision=27829
* Decimal.cs: Fixed To... methods that needs to trunk the integer part
of Decimal (and not use the banker's rounding like Convert.To...).
svn path=/trunk/mcs/; revision=27828
* DecimalTest.cs: Added new unit test to check for correct rounding.
It appears that Decimal.To... trunk but Convert.To... use banking
rounding (so we can't use Convert.To... to implement To...).
svn path=/trunk/mcs/; revision=27825
* XmlSchemaDataImporter.cs : Setting startindex in LastIndexOf()
caused problem on qualified name to get schema Field name.
svn path=/trunk/mcs/; revision=27803
* Uri.cs :
AbsoluteUri does not escape file URI string.
ToString() should unescape every file uri. MS.NET.ToString() does
not unescape '#' but it looks a bug.
svn path=/trunk/mcs/; revision=27802
* XmlDataReader.cs : Now data reader is namespace aware in all places.
When table's namespace is different, it entered to infinite loop.
svn path=/trunk/mcs/; revision=27800
* X509CapiTest.cs: SetUp and TearDown are now public (required for new
nunit).
* X509SpcTest.cs: SetUp and TearDown are now public (required for new
nunit).
svn path=/trunk/mcs/; revision=27795
* KeyInfoTest.cs: SetUp is now public (required for new nunit).
* ReferenceTest.cs: SetUp is now public (required for new nunit).
svn path=/trunk/mcs/; revision=27789
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27787
NpgsqlAsciiRow.cs,
NpgsqlBackEndKeyData.cs,
NpgsqlBinaryRow.cs,
NpgsqlCommand.cs,
NpgsqlConnectedState.cs,
NpgsqlConnection.cs,
NpgsqlConnection.resx,
NpgsqlConnector.cs,
NpgsqlConnectorPool.cs,
NpgsqlError.cs,
NpgsqlMediator.cs,
NpgsqlMessageTypes.cs,
NpgsqlPasswordPacket.cs,
NpgsqlQuery.cs,
NpgsqlRowDescription.cs,
NpgsqlStartupPacket.cs,
NpgsqlState.cs,
PGUtil.cs,
NpgsqlTypes/NpgsqlTypesHelper.cs : - store protocol version as an enum, keep numbers as protocol specific
- split more protocol handlers between version 2 and version 3
- split MessageTypes class on ver2/ver3 and add remaining types for ver3 - removed handlers for deprecated protocol message types
- store BackendKeyData in its own member on Mediator
- Store ParameterStatus objects in a key map on Mediator
- Get backend version now from the Mediator if possible
- Rewrite parsers for server version and connection string
- Store server version numericially (in a new class ServerVersion)
- As usual, lots of code cleanup/commenting/etc.
Thanks very much Glen Parker ([email protected]) for this patch.
svn path=/trunk/mcs/; revision=27786
* Convert.cs: Added checks for integer overflow for From|ToBase64Char.
Also fixed the case where wide (16 bits) characters were converted to
bytes.
svn path=/trunk/mcs/; revision=27781
* ConvertTest.cs: Added new unit tests for integer overflow in To/From
Base64CharArray. Added new test for wide char. Exploded some tests in
NUnit2 format (to ease add new tests).
svn path=/trunk/mcs/; revision=27780
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27777
interrupted by a signal.
* io.c, sockets.c: Check for EINTR in every syscall that can be interrumped.
Only return an error in this case if there is something in the apc queue
(which means that it is an interruption requested by the "user").
* processes.c: Use WaitForSingleObjectEx. No need to pass "alertable" as
true since the wait is small.
* shared.c: Retry write calls when interrumped by a signal.
* timed-thread.h, timed-thread.c: added _wapi_thread_apc_pending, which
returns TRUE if there are pending asynchronous calls (APC) for the
provided thread. Also added _wapi_thread_dispatch_apc_queue which calls
the enqueued APCs. Defined a new struct ApcInfo that holds information
about an enqueued APC.
* thread-private.h, threads.c: Implemented QueueUserAPC (which does the same
as in win32),_wapi_thread_apc_pending and _wapi_thread_dispatch_apc_queue.
These last two methods call the corresponding apc methods in
thread-private using the provided thread handle.
* threads.h: Added QueueUserAPC.
* uglify.h: Added WapiApcProc (needed by QueueUserAPC).
* wait.c, wait.h: Changed WaitForSingleObject to WaitForSingleObjectEx, and
WaitForMultipleObjects to WaitForMultipleObjectsEx. Implemented support
for APCs in those two methods and also in SleepEx.
svn path=/trunk/mono/; revision=27776
* XmlSchemaDataImporter.cs : xs:positiveInteger is mapped to ulong.
When content type is Mixed, text column is not required (it is
required only when the complex type has no particle).
"Repeated element" column is also created (considering maxOccurs=0
and complex content extension).
svn path=/trunk/mcs/; revision=27759
Merged this back from gmcs to keep the differences to a minumum.
* attribute.cs (Attribute.CheckAttributeType): Take an EmitContext
instead of a Declspace.
(Attribute.ResolveType): Likewise.
(Attributes.Search): Likewise.
(Attributes.Contains): Likewise.
(Attributes.GetClsCompliantAttribute): Likewise.
* class.cs (TypeContainer.VerifyMembers): Added EmitContext
argument.
(MethodData.ApplyAttributes): Take an EmitContext instead of a
DeclSpace.
svn path=/trunk/mcs/; revision=27753
Merged latest changes into gmcs. Please keep this comment in
here, it makes it easier for me to see what changed in MCS since
the last time I merged.
svn path=/trunk/mcs/; revision=27745
for library to be tested.
* rules.make (INTERNAL_RESGEN): New Define.
* library.make (run-test-local): Move commands to run-test-lib.
Preparartion for allowing creation of addition test dll with .vb
testcases.
* executable.make (PROGRAM_COMPILE): New define.
($(PROGRAM)): Use PROGRAM_COMPILE to compile PROGRAM.
svn path=/trunk/mcs/; revision=27734
tools/locale-builder/Makefile.
* Makefile.am (SUBDIRS): Remove tools.
(DIST_SUBDIRS): Add 'tools'.
(bootstrap): Rewrite so that we get two new targets.
(faststrap): New two-stage build.
(fasterstrap): New one-stage build.
Make 'faststrap' and 'fasterstrap' are useful for continuing development
once you've bootstrapped a mono/ CVS checkout.
svn path=/trunk/mono/; revision=27732
* Expression.cs : We should not catch all kind of exception. Just
throwing any kind of exception would be preferable.
Added support for XPathNavigator values.
svn path=/trunk/mcs/; revision=27726
* XslCopyOf.cs : When evaluation result was result tree fragment (i.e.
XPathNavigator) output its content (children).
* XslNumber.cs : Reflected CompilePattern() change.
* XslTemplateContent.cs : Don't throw System.Exception.
* XslVariable.cs : XslVariableInformation.Evaluate() now returns
XPathNavigator, not NodeSet (it should not return "children", since
the node pointed by XPathNavigator should be referenced as Root).
svn path=/trunk/mcs/; revision=27725
* tools/Makefile.am: Add tools directory
* tools/locale-builder: Add the locale-builder tool, this tool is
not built by default as it is only needed by people that wish to
moidify culture data.
* Makefile.am: Add tools to build
svn path=/trunk/mono/; revision=27717
* DebuggerStepThroughAttribute.cs : now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27702
* DateTimeconstantAttribute.cs
* DecimalConstantAttribute.cs
* IDispatchConstantAttribute.cs
* IUnknownConstantAttribute.cs
* MethodImplAttribute.cs
* RequiredAttributeAttribute.cs: now that Inherited is
false by default on AttributeUsageAttribute (as it
should be) we need to explicitly set Inherited to false
for those attributes where it should be false.
svn path=/trunk/mcs/; revision=27701
* ContextStaticAttribute.cs
* FlagsAttribute.cs
* ObsoleteAttribute.cs : now that Inherited is false by
default on AttributeUsageAttribute (as it should be) we
need to explicitly set Inherited to false for those
attributes should it be be false.
svn path=/trunk/mcs/; revision=27699
* icall.c: new signature for Process_Start.
* process.[ch]: new signature for Process_Start. If we're on windows
and UseShellExecute is false, we have to search for the program by
ourselves if we don't get a full path.
svn path=/trunk/mono/; revision=27696
Fix bug #58688 (MCS does not report error when the same attribute
is assigned twice)
* attribute.cs (Attribute.Emit): Distinction between null and default.
svn path=/trunk/mcs/; revision=27687
* CustomSerializer.cs : Added custom serializer for XmlSchema, that is
generated by SerializationCodeGenerator and edited a bit.
* XmlSchema.cs : Use XmlSchemaSerializationWriter.
svn path=/trunk/mcs/; revision=27680
of a top-level attribute without an attribute target.
* attribute.cs (Attribute.Error_AttributeConstructorMismatch):
Make non-static.
(Attribute.Conditional_GetConditionName),
(Attribute.Obsolete_GetObsoleteMessage): Update.
(Attribute.IndexerName_GetIndexerName): New. Attribute-specific
part of ScanForIndexerName.
(Attribute.CanIgnoreInvalidAttribute): New function.
(Attribute.ScanForIndexerName): Move to ...
(Attributes.ScanForIndexerName): ... here.
(Attributes.Attrs): Rename from now-misnamed AttributeSections.
(Attributes.Search): New internal variant that can choose not to
complain if types aren't resolved. The original signature now
complains.
(Attributes.GetClsCompliantAttribute): Use internal variant, with
complaints suppressed.
(GlobalAttribute.CheckAttributeType): Overwrite ds.NamespaceEntry
only if it not useful.
(CanIgnoreInvalidAttribute): Ignore assembly attribute errors at
top-level for attributes that are shared between the assembly
and a top-level class.
* parameter.cs (ImplicitParameter): Rename from ParameterAtribute.
* class.cs: Update to reflect changes.
(DefineIndexers): Fuse loops.
* codegen.cs (GetAssemblyName): Update to reflect changes. Accept
a couple more variants of attribute names.
(cleans up some issues with Marek's patch. Most importantly, it fixes
a breaking build: errors/CS0618-2-lib.dll)
svn path=/trunk/mcs/; revision=27666
* PKCS7.cs: Added SignedData.VerifySignature(AsymmetricAlgorithm aa).
Added support for calculating signature from SignedData content (i.e.
when UseAuthenticatedAttributes is false). Added contentType to
AuthenticatedAttributes (when SignedData.UseAuthenticatedAttributes
is true).
svn path=/trunk/mcs/; revision=27662
* DataContainer.cs - added. Provides implementation for data containers that holds data in arrays of primitives or objects. Each data container belongs to specific DataColumn.
* DbDataAdapter.cs - changes to complete data storage redesign. Bug fix in FillTable ( to fetch exact number of records required ).
svn path=/trunk/mcs/; revision=27655
* SqlDecimal.cs : Fixed operator/ not to return positive always.
Halfly fixed ConvertToPrecScale() that was broken.
svn path=/trunk/mcs/; revision=27624
* SqlDecimal.cs :
- .ctor() should check the valid scale range and throw
SqlTypeException.
- Value should copy the last int32 value fragment.
- Fixed Abs() and Ceiling() to return Null when the input is Null.
- Now AdjustScale() should not depend on Truncate() that keeps zero
digits correctly. So Round() before returning the final result.
- ToString() should insert '-' for minus values.
- operator+ should use larger scale of operands rather than smaller
scale.
svn path=/trunk/mcs/; revision=27615
Fix bug #52585 (Implemented explicit attribute declaration)
* attribute.cs:
(Attributable.ValidAttributeTargets): New abstract method. It gets
list of valid attribute targets for explicit target declaration.
(Attribute.Target): It holds target itself.
(AttributeSection): Removed.
(Attribute.CheckTargets): New method. It checks whether attribute
target is valid for the current element.
* class.cs:
(EventProperty): New class. For events that are declared like
property (with add and remove accessors).
(EventField): New class. For events that are declared like field.
class.cs
* cs-parser.jay: Implemented explicit attribute target declaration.
* class.cs, decl.cs, delegate.cs, enum.cs, parameter.cs:
Override ValidAttributeTargets.
* parameter.cs:
(ReturnParameter): Class for applying custom attributes on
the return type.
(ParameterAtribute): New class. Class for applying custom
attributes on the parameter type.
svn path=/trunk/mcs/; revision=27608
* mini.h mini.c (mini_method_compile): Only run abc removal pass on
methods which contain array accesses.
* mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
boundaries. Fixes#58537.
* iltests.il: Add regression test for #58537.
svn path=/trunk/mono/; revision=27607
* basic-long.cs: Add new regression test.
2004-05-18 Patrik Torstensson <[email protected]>
* mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
register too early on the chain.
svn path=/trunk/mono/; revision=27591
* ASN1Convert.cs: In sync with Mono.Security.dll version.
* StrongName.cs: In sync with Mono.Security.dll version.
svn path=/trunk/mcs/; revision=27587
* Assembly.cs: Return an empty Evidence collection to avoid
NullReferenceException from calling code (as this is never
null with MS implementation). See bugzilla #53548.
svn path=/trunk/mcs/; revision=27586
* Buffer.cs: Added checks for null source and destination. Fix failing
CryptoStream unit test.
* Guid.cs: Fixed thread-safety issue. Simplified implementation to use
pseudo-random numbers to generate GUIDs (as per section 3.4 of the
spec). This removes the TODO to get the computer MAC address and
the chances to get a duplicate GUID (across different machines).
svn path=/trunk/mcs/; revision=27585
* mini.c (create_helper_signature): Use a helper function to reduce
the code which needs to be written. Also set the calling convention of
icalls on windows. Fixes#57840.
svn path=/trunk/mono/; revision=27578
* mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
exceptions-ppc.c: added helper function to get the instruction address
from a signal handler context.
svn path=/trunk/mono/; revision=27577
* SqlDecimal.cs :
- .ctor(double) initializes the precision as 17. If not sufficient,
it calls AdjustScale(), and if too much then it calls Round().
- Data should not return the internal array otherwise it might be
modified by outer code.
- Reimplemented AdjustScale() to work fine.
- Reimplemented Parse(). It should rather use Decimal.Parse()
rather than SqlDouble.Parse() for parsable value range difference.
- Reimplemented Round(). Don't use double.
- Fixed ToString() to return "Null" for null value.
- Fixed explicit let operator to use double .ctor, not decimal
.ctor() so that precision can be handled in the same way as double.
svn path=/trunk/mcs/; revision=27568
* TestBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
* TestColorBlend.cs: dos2unix format and namespace changed to
MonoTests.System.Drawing.Drawing2D.
svn path=/trunk/mcs/; revision=27566
* SqlDecimalTest.cs :
Don't catch all kind of exception. That hides the exact error info.
Don't use ToSqlString() in AdjustScale() test (to make which is
wrong).
MS.NET's ToSqlInt32() is buggy; no worth following the behavior.
Added test for parsing "999999..." (SqlDecimal.MaxValue).
svn path=/trunk/mcs/; revision=27564
* HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
entities hashtable creation until it's really needed.
svn path=/trunk/mcs/; revision=27561
* ByteFX.Data.dll.sources: Update to latest listing of source
files.
* AssemblyInfo.cs: Revert back to the previous version, because we
don't have bytefx.snk.
* mysqlclient/transcaction.cs: Removed, replaced by the new
transaction.cs.
svn path=/trunk/mcs/; revision=27557
* RNGCryptoServiceProviderTest.cs: Added new tests to see how the
constructor behave with null seeds or if they modify the seed.
svn path=/trunk/mcs/; revision=27553
* helpers.c: Add new env variable to pass args to objdump.
Specifically for those of us who love -Mintel. r=miguel, gonzalo.
svn path=/trunk/mono/; revision=27551
* TextBox.cs: don't save the Text if in ViewState if it's a password.
Save it if the control is not visible or not enabled. Fixes bug #58497.
svn path=/trunk/mcs/; revision=27549
* SoapHttpClientProtocol.cs: when the response has a not acceptable
status code, the WebException we throw has a status of ProtocolError.
Fixes bug #58564.
svn path=/trunk/mcs/; revision=27543
* HttpApplicationFactory.cs: if no module matches the name found for a
possible event, ignore it. Fixes bug #58542.
svn path=/trunk/mcs/; revision=27541
* ConfigurationSettings.cs: don't ask me why, but the .cctor
initialization of 'instance' field does no longer work.
svn path=/trunk/mcs/; revision=27539
* gacutil.cs:
(InstallAssembly): use Array.IndexOf to search for "/f", "-f" or
"--force" instead of expecting it in a fixed place.
svn path=/trunk/mcs/; revision=27537
* TimeSpan.cs: Only catch expected exceptions, if we get other exceptions
than OverflowExceptions then something went wrong internally
svn path=/trunk/mcs/; revision=27535
(GraphicsPathIterator): Store the path count, path points and path
type arrays instead of calling unmanaged functions in GDI+ each time
to get to get the path data.
(CopyData, Enumerate, HasCurve, Rewind, SubpathCount): Implemented.
svn path=/trunk/mcs/; revision=27533
* XmlDataDocument.cs :
Removed MonoTODO from implemented members and private members.
Updated OnNodeRemoved(), OnDataRowDeleted() and OnDataTableRollback()
to match with current implementation.
svn path=/trunk/mcs/; revision=27529
* Makefile.am (common_sources): added abcremoval.h so it get
disted and daily mono packages on go-mono.com will build again
svn path=/trunk/mono/; revision=27528
* DataSet.cs,
XmlDataInferenceLoader.cs,
XmlDataReader.cs,
XmlSchemaDataImporter.cs : XmlDecode every local name to read and
XmlEncode every local name to write. This should fix bug #58268.
svn path=/trunk/mcs/; revision=27524
* DataSetAssertion.cs : Enabled "Ordinal" check again, unless the test
value is -1.
* DataSetInferXmlSchemaTest.cs,
DataSetReadXmlSchemaTest.cs : Enabled Ordinal check again, as long
as working. Added IgnoredNamespaces() to inferxmlschema test.
svn path=/trunk/mcs/; revision=27520
necessary. Move body ...
(tmpinst-dir.stamp): ... here.
(stage3): Don't remove _tmpinst tree.
(bootstrap-clean, bootstrap-check): New rules. They run the
corresponding rules in the mcs/ tree.
svn path=/trunk/mono/; revision=27513
* marshal.c: Don't pass wrappers to message init because method
addressed used to lookup metadata. part of remoting[2|3] fix.
svn path=/trunk/mono/; revision=27495
* ExpiresBucket.cs: Style changes plus;
(Update): Fixed possible lock bug (bug 54531)
(Expand): remove lock optimization due to it can cause newly
added items to be lost.
(Remove): fixed possible lock bug.
svn path=/trunk/mcs/; revision=27480
* mini-x86.c (mono_arch_local_regalloc): Correctly free
reg in long and clob case (bug #58343). Fixed/added comments.
svn path=/trunk/mono/; revision=27478
* Installer.cs: marked parent internal to match MS
* InstallerCollection.cs: implemented
* InstallEventArgs.cs: remove setter for SavedState
svn path=/trunk/mcs/; revision=27471
struct correctly to a native struct. Resulting data should be
FreeHGlobal'd when finished.
* EncoderParameter.cs: Changed data storage to correspond to
native code layout. Also changed layout to match native layout.
* EncoderParameterValueType.cs: force EncoderParameterValueType to
be Int32
* gdipFunctions.cs: Fixed prototype for
GdipGetEncoderParameterList
* Image.cs: Reworked Save functions to handle EncoderParameters.
Implemented GetEncoderParameterList.
Also removed unused setGDIPalette internal method.
svn path=/trunk/mcs/; revision=27467
path is essentially the same as MONO_PATH except that it points to
GACs instead of lib directories.
* loader.h: The user gac is gone so we dont need function to
enable/disable it.
* mono-config.c: user gac option is now gone.
svn path=/trunk/mono/; revision=27464
array of ints is passed back from the runtime to the CultureInfo
object. The ints store the calendar type and any optional data
needed to construct the calendar.
svn path=/trunk/mcs/; revision=27462
to the culture info table.
* culture-info-tables.h: Add basic calendar data. Basically
everyone gets default gregorian until all the data is
updated.
* locales.c: Use the new consistent defines. Set calendar data for
culture info objects.
* object.h: add a field for calendar data to CultureInfo
svn path=/trunk/mono/; revision=27461
* Makefile: corrected /libpath: compiler flag (parameter) to point to ../class/lib/default/ the new location of libraries
svn path=/trunk/mcs/; revision=27459
* System.ComponentModel.Design/ComponentDesigner.cs: fixed public API
* System.Web.UI.Design/ControlDesigner.cs: fixed public API
* System.Web.UI.Design/HtmlControlDesigner: fixed public API
* System.Windows.Forms.Design/AnchorEditor.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/AxImporter.cs: fixed public API,
converted to unix linefeeds
* System.Windows.Forms.Design/ComponentDocumentDesigner.cs: fixed
public API, converted to unix linefeeds
* System.Windows.Forms.Design/SelectionRules.cs: implementation
svn path=/trunk/mcs/; revision=27445
converted to unix linefeeds, marked class TODO, added Flags
attribute to FolderBrowserStyles enum
* System.Windows.Forms.Design/FileNameEditor.cs:
completed stubs, converted to unix linefeeds
svn path=/trunk/mcs/; revision=27441
conversion in C.
(GraphicsPath): Use GdipCreatePath2I instead.
(SetMarker, ClearMarkers):
(Flatten, GetBounds, IsOutlineVisible, IsVisible):
(StartFigure, CloseFigure, CloseFigures):
(Warp, Widen): Implemented. I left the MonoTODO attribute on for
the methods where the equivalent C function has not yet been
implemented.
* GraphicsPathIterator.cs (Count): Implemented.
* gdipFunctions.cs (GdipCreatePath2I, GdipAddPathPieI):
(GdipFlattenPath, GdipWarpPath, GdipWidenPath):
(GdipGetPathWorldBounds, GdipGetPathWorldBoundsI): Imported.
svn path=/trunk/mcs/; revision=27424
* CustomDataClassGenerator.cs :
- Put classes inside custom DataSet class.
- Added automatic DataRelation creation support.
- Added Constraints creation support. That is done separate from
relations, since they might be independently created.
- Added non-MS public DataRelation fields.
- Removed extraneous "DataRelation type generation" code.
- Fixed custom_dataset.Initialize() not to create "c" field that
was created more than once.
- Implemented AddxxxRow() that takes parameters for every column.
svn path=/trunk/mcs/; revision=27418
* UTF8Encoding.cs: Moved charCount-- after the check for surrogate
pair. This fix bug #57009 (and 2 failing unit tests).
svn path=/trunk/mcs/; revision=27405
TestBitmap.cs: Modified method signature to static for use in other files.
TestImageConverter.cs: Added.
TestImageFormatConverter.cs: Added.
bitmaps/almogaver24bits1.bmp: Added.
svn path=/trunk/mcs/; revision=27402
* XmlSchemaDataImporter.cs : When primary key is used more than once,
DataRelation borked because of empty parent column name.
svn path=/trunk/mcs/; revision=27388
* XmlSchemaDataImporter.cs : When Creating constraints with related
to DataRelation creation, also set PrimaryKey to the parent table.
svn path=/trunk/mcs/; revision=27367
* XmlSchemaDataImporter.cs :
Design change to add indirect table and relation structures.
Support for "relation" annotation for local element.
Support for repeatable simple element column (maxOccurs > 1).
Fixed handling of Nested property on DataRelation (for globally
annotated relation, Nested is false).
svn path=/trunk/mcs/; revision=27359
* DataSetReadXmlSchemaTest.cs : Added tests for test012.xsd (repeatable
simple element) and test013.xsd (reference to global element;
currently failing).
svn path=/trunk/mcs/; revision=27358
* culture-info-tables.h: seems like Spanish and Portuguese cultures had
DateTimeFormatInfo.YearMonthPattern like "MMMM' yyyy" (note the single
quote). Changed them to "MMMM yyyy".
svn path=/trunk/mono/; revision=27337
* HtmlForm.cs: default value for Enctype is "".
* HtmlInputFile.cs: if no one set the encoding type for the HtmlForm,
we set it to "multipart/form-data". Fixes bug #58359.
svn path=/trunk/mcs/; revision=27332
* System.Web.Compilation/BaseCompiler.cs: use DynamicBase for the output
assemblies.
* System.Web.Configuration/CompilationConfiguration.cs: a null value is
ok for TempDirectory.
* System.Web.Hosting/AppDomainFactory.cs: set the Dynamic base for the
AppDomain.
Fixes bug #57726.
svn path=/trunk/mcs/; revision=27329
* AppDomainSetup.cs: don't throw an exception if dynamic_base has not
been set. Just return null as MS. Fixes bug #58120.
svn path=/trunk/mcs/; revision=27326
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception t
o InvalidOperationException when calling the Hash property and hash value is nul
l. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27299
* Npgsql/NpgsqlHashAlgorithm.cs: Changed exception type from Exception to InvalidOperationException when calling the Hash property and hash value is null. Thanks Gonzalo Paniagua Javier <[email protected]> for catching that.
svn path=/trunk/mcs/; revision=27298
* Thread.cs: Added missing MemoryBarrier (only for 1.1) and SpinWait to please
corcompare. Both throw a NotImplementedException.
* ThreadPool.cs: Added missing UnsafeRegisterWaitForSingleObject methods (4
overloads) to please corcompare. All throw a NotImplementedException.
svn path=/trunk/mcs/; revision=27293
* mono-mutex.c (mono_mutex_unlock): Return EPERM when the current
thread doesn't own the mutex, rather than assert()ing.
svn path=/trunk/mono/; revision=27292
In .NET 1.0, encoded null elements use the attribute null="1", while in
1.1 the attribute is nil="true".
* XmlTypeMapping.cs: Little fix for nested classes.
svn path=/trunk/mcs/; revision=27279
* Utils.cs:
Finally implement fully method CopyArray
Progression: all nunit-tests for this method now pass on Mono, as they do in .NET
svn path=/trunk/mcs/; revision=27278
* XmlCanonicalizer.cs :
Element namespace is not XPath-selected(selectable) namespace nodes
and that should be outputted.
Don't return null for empty output.
svn path=/trunk/mcs/; revision=27270
* XmlDsigBase64Transform.cs :
LoadInput() should retrieve all the descendants.
GetOutput() should handle nodes without digging into child nodes.
svn path=/trunk/mcs/; revision=27269
* Environement.cs: Removed two security attributes for CurrentDirectory
that weren't documented (and anyway we don't support them).
svn path=/trunk/mcs/; revision=27268
* DataRow.cs : Added DataElement property to avoid storing every row-
element mapping. It stored even for nodes that should be removed.
svn path=/trunk/mcs/; revision=27266
* XmlDataDocument.cs : Removed row-element mapping. Just use new
DataRow.DataElement property. Added/removed some comments.
svn path=/trunk/mcs/; revision=27251
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
kind of thing that should be supported.
* XmlValidatingReaderTests.cs : commented a bit.
svn path=/trunk/mcs/; revision=27238
* XmlSchema.cs : Removed FIXME. No PSVI required.
* XmlSchemaAll.cs : Removed FIXME. It was not done.
* XmlSchemaAttributeGroupRef.cs : Removed FIXME. It can be annotated.
* XmlSchemaChoice.cs : not FIXME but LAMESPEC.
* XmlSchemaSimpleTypeRestriction.cs : Added check for non
XmlSchemaFacet items on Compile(). Thus removed FIXME.
* XmlSchemaUtil.cs : Fixed SplitList to handle sequential spaces.
Thus removed FIXME.
* XmlSchemaObjectTable. cs: modified to use HybridDictionary (mostly
for avoiding iterator order difference).
svn path=/trunk/mcs/; revision=27232
* SqlClientPermission.cs, SqlDataReader.cs - added missing methods with TODO tags
* SqlCommand.cs, SqlDataAdapter.cs - implemented ToolboxItemAttribute
* SQLDebugging.cs - Added new file with a TODO tag
svn path=/trunk/mcs/; revision=27229
* DefaultContext.cs : Removed MonoTODO. done.
* Expression.cs : handle XPathResultType.Navigator in some places and
removed MonoTODO. Mark MonoTODO with explicit comments (though they
are mostly pointing out possibilities of optimization).
Removed extra check that depended on the old bugs.
* XPathResultType.cs : Fixed .Navigator that had the same value as
.String.
svn path=/trunk/mcs/; revision=27224
* System.Net/HttpWebRequest.cs: added 3 missing properties for 1.1. They
are not used yet.
* System.Net/NetConfig.cs: added MaxResponseHeadersLength field.
* System.Net/ServicePoint.cs:
* System.Net/ServicePointManager.cs: added missing properties for 1.1.
* System.Net.Configuration/NetConfigurationHandler.cs: process the
httpWebRequest node too. Better error checking.
svn path=/trunk/mcs/; revision=27211
* IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
AssemblyIdentity and DomainIdentity properties.
* IsolatedStorageFile.cs: More details on MonoTODO.
* IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use
Path.Combine to build filenames (constructor) and throw an exception
when we try to get the handle (as documented).
svn path=/trunk/mcs/; revision=27208
* XmlDataDocument.cs : Radical design change.
- GetElementFromRow() must return "detached" element, even if it is
not added to table's Rows.
- Introduced XmlDataElement class to map element (this class itself)
and DataRow _always_ . It is impossible to map *all* DataRows
to/from elements only in XmlDataDocument API, since DataRow can
be created separate from it (i.e. by table.NewRow()).
- Removed unreliable GetElementsByTagName() dependency from most
of the code, since users might create elements that has the same
name of any tables (that is possible especially unmapped elements).
- Adding/Removing delegates on every event action is unnecessary.
Use just flags.
- For Load(), just using base.Load() will do most of the job.
- Attributes and SimpleContents are not handled properly.
"Removed" and "Rollback" events are still TODO.
svn path=/trunk/mcs/; revision=27194
* XmlDataDocumentTest.cs : use Environment.NewLine. Added more tests.
* XmlDataDocumentTest2.cs : Test nested relationship, detached row
state, and unmapped element as well.
svn path=/trunk/mcs/; revision=27192
* GroupCollection.cs:
* MatchCollection.cs:
* CaptureCollection.cs: Moved GroupCollection, MatchCollection and
CaptureCollection so that they no longer inherit from the
non-standard RegexCollectionBase class. Fixes the API difference.
svn path=/trunk/mcs/; revision=27175
by the handler factory to check if the target method needs session or not.
Also factorized error handling in WriteError().
* HttpSoapWebServiceHandler.cs: Added GetRequestMethod(), for the same
reason. Assign the context to the WebService just before invoking the
method.
* SoapHttpClientProtocol.cs: Use helper method to create the xml writer.
* WebServiceHandler.cs: Added virtual GetRequestMethod().
* WebServiceHandlerFactory.cs: Use an http handler wrapper when the target
method requires session support.
* WebServiceHelper.cs: Added some helper methods.
svn path=/trunk/mcs/; revision=27168
* PKCS12.cs: Removed file exists check from SaveToFile(). Removed
Equals() and GetHashCode(). Clone the original iteration count.
svn path=/trunk/mcs/; revision=27166
* services.xml, wsdl.ignore: Updated.
* wstest.cs: Small improvements.
* external/BankCodeEJBHomeTest.cs, external/GlobalWeatherTest.cs,
external/HPcatalogTest.cs, external/IODCODESPOSTAUXTest.cs,
external/TemperatureServiceTest.cs, localhost/ConvDocEncBarTest.cs,
localhost/ConvDocEncWraTest.cs, localhost/ConvDocLitBarTest.cs,
localhost/ConvDocLitWraTest.cs, localhost/ConvRpcTest.cs
Changed namespace to make it easier to select tests in gnunit.
* localhost/ConvRpcTest.cs: Added test for method that returns "Object".
* server/ConvDocEncWra.asmx, ConvDocLitWra.asmx, ConvRpc.asmx: New test
methods.
* server/web.config: Added version to vsdisco handler type name.
* client/localhost/DataServiceTest.cs
client/localhost/DuplicateArrayTestTest.cs
client/localhost/SessionCounterTest.cs
server/DataService.asmx
server/DuplicateArrayTest.asmx
server/SessionCounter.asmx: New tests.
svn path=/trunk/mcs/; revision=27165
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
* System.Web.dll.sources: added Html32TextWriter.
* System.Web.Compilation/AspGenerator.cs: ObjectTagBuilder do not
override HasBody now.
* System.Web.UI/Html32TextWriter.cs: stub contributed by Matthijs ter
Woord [meddochat].
* System.Web.UI/ObjectTagBuilder.cs: remove the HasBody override as MS
does not have that.
This makes System.Web free of errors, missing or extra stuff in the
class status pages.
svn path=/trunk/mcs/; revision=27144
* attribute.cs:
(Attribute.GetAttributeTargets): New method. Gets AttributeTargets
for attribute.
(Attribute.IsClsCompliaceRequired): Moved to base for better
accesibility.
(Attribute.UsageAttribute): New property for AttributeUsageAttribute
when attribute is AttributeUsageAttribute.
(Attribute.GetValidTargets): Simplified.
(Attribute.GetAttributeUsage): New method returns AttributeUsage
attribute for this type.
(Attribute.ApplyAttributes): Method renamed to Emit and make
non-static.
(GlobalAttributeSection): New class for special handling of global
attributes (assembly, module).
(AttributeSection.Emit): New method.
* class.cs: Implemented Attributable abstract methods.
(MethodCore.LabelParameters): Moved to Parameter class.
(Accessor): Is back simple class.
(PropertyMethod): Implemented Attributable abstract class.
(DelegateMethod): Implemented Attributable abstract class.
(Event): New constructor for disctintion between normal Event
and Event with accessors.
* cs-parser.jay: Used new Event ctor and GlobalAttributeSection.
* codegen.cs, const.cs, decl.cs, delegate.cs:
(CommonAssemblyModulClass): Implemented Attributable abstract class
and simplified.
* enum.cs: Implement IAttributeSupport interface.
(EnumMember): New class for emum members. Implemented Attributable
abstract class
* parameter.cs:
(ParameterBase): Is abstract.
(ReturnParameter): New class for easier [return:] attribute handling.
* typemanager.cs: Removed builder_to_attr.
svn path=/trunk/mcs/; revision=27143
* Makefile: disable net_2_0 on windows. It doesn't build. Don't
try to build net_1_0 and net_2_0 if we provide a PROFILE=xxx in the
command line.
svn path=/trunk/mcs/; revision=27137
* metadata/Makefile.am: link to ../os/libmonoos.la on windows.
* metadata/assembly.c:
-If MONO_DEBUG, warn about non-existing directories in
MONO_PATH.
-Added mono_assembly_getrootdir() that replaces MONO_ASSEMBLIES
compile time variable.
-Removed init_default_path and call mono_set_rootdir from
libmonoos.a instead (windows only).
* metadata/assembly.h: declare mono_assembly_getrootdir().
* metadata/domain.c:
* metadata/icall.c: use mono_assembly_getrootdir() instead of
MONO_ASSEMBLIES.
* metadata/loader.c: s/getenv/g_getenv/
* os/win32/util.c: the path from GetModuleFileName is UTF-16.
svn path=/trunk/mono/; revision=27134
* platforms/win32.make: Define a PLATFORM_PATH_SEPARATOR used for
separating paths in env vars. (ie MONO_PATH).
* profiles/net_2_0.make: Always use gmcs for building the 2.0
libraries. corlib is the first lib built and it will build
gmcs.
svn path=/trunk/mcs/; revision=27126
* marshal.{h,c}: Add support for UnmanagedType.AsAny.
* marshal.c: Use mono_metadata_signature_{alloc,dup} where appropriate.
* metadata.h: Add new marshalling conversions.
* metadata.h metadata.c (mono_metadata_signature_dup): New helper function.
svn path=/trunk/mono/; revision=27122
* Mono.Security.Protocol.Tls.Handshake.Client/TlsServerCertificate.cs:
- Added fix for better handling of exceptions when
building the X509 Certificate chain.
svn path=/trunk/mcs/; revision=27117
* Timer.cs: if AutoReset, disable the timer before adding the callback
to the ThreadPool. Patch by Tim Fries <[email protected]>. Fixes bug
#57993.
svn path=/trunk/mcs/; revision=27114
* XmlDataInferenceLoader.cs :
It now requires XmlDocument as input. Improved identification of
DataSet element. Removed extra lines.
Moved boresome design notes to bottom of the source and
added standalone runnable driver (not included on build).
* DataSet.cs :
Update with related to the change above.
WriteXml() should call Flush() after writing. This fixes bug #58327.
* XmlSchemaDataImporter.cs :
Improved indentification of DataSet element.
svn path=/trunk/mcs/; revision=27111
* shared.c (_wapi_shm_attach): Cope when a previous daemon startup
attempt failed, leaving shared files that look like a daemon is
still starting.
svn path=/trunk/mono/; revision=27097
* SoapDocumentationHandler.cs: added internal property to get the page
handler when available.
* WebServiceHandlerFactory.cs: wrap the documentation handler in a class
that implements IRequiresSessionState and, if requested,
IReadOnlySessionState, so that we can use Sesion object in the default
WSDL help generator.
svn path=/trunk/mcs/; revision=27092
* reflection.c (mono_reflection_get_type): Lookup the type in all
modules of a multi-module assembly. Fixes#58291.
svn path=/trunk/mono/; revision=27091
* Mono.Security_test.dll.sources: Added unit tests for Mono.Security.
Protocol.Ntlm.MessabeBase and Mono.Security.ASN1Convert.
svn path=/trunk/mcs/; revision=27090
* ARC4ManagedTest.cs: Added missing unit tests for complete coverage.
Completed convertion to NUnit 2.
* CryptoConvertTest.cs: Added/modified unit tests for better coverage.
* MD2ManagedTest.cs: Added unit tests for better coverage.
* MD2Test.cs: Added unit tests for better coverage.
* MD4ManagedTest.cs: Added unit tests for better coverage.
* MD4Test.cs: Added unit tests for better coverage.
* PKCS8.cs: Added unit tests for better coverage.
svn path=/trunk/mcs/; revision=27087
* ChallengeResponseTest.cs: Added new unit tests for better coverage.
* MessageBaseTest.cs: New. Unit tests for the base abstract class.
* Type2MessageTest.cs: Added new unit tests for better coverage.
* Type3MessageTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27086
* PrivateKeyTest.cs: Added new unit tests for better coverage.
* SoftwarePublisherCertificateTest.cs: Added new unit tests for better
coverage.
svn path=/trunk/mcs/; revision=27085
* ASN1ConvertTest.cs: New. Unit tests for ASN.1 convertions.
* StrongNameTest.cs: Added new unit tests for better coverage.
svn path=/trunk/mcs/; revision=27084
* ASN1Convert.cs: Added better exceptions. Fixed bugs found by new
unit tests.
* StrongName.cs: Fixed GetBytes() when creating a new strongname.
Removed unrequired :base() from a constructor. Removed debugging
Console.WriteLine.
svn path=/trunk/mcs/; revision=27082
* attribute.cs (Attribute.GetPositionalValue): New function.
* class.cs (TypeContainer.VerifyMembers): New function.
(TypeContainer.Emit): Use it.
(ClassOrStruct): New base class for Class and Struct.
(ClassOrStruct.ApplyAttributeBuilder): New function. Note if
StructLayout(LayoutKind.Explicit) was ascribed to the struct or
class.
(ClassOrStruct.VerifyMembers): If the struct is explicitly laid out,
then each non-static field should have a FieldOffset attribute.
Otherwise, none of the fields should have a FieldOffset attribute.
* rootcontext.cs (RootContext.ResolveCore): Resolve StructLayout
and FieldOffset attributes.
* typemanager.cs (TypeManager.struct_layout_attribute_type)
(TypeManager.field_offset_attribute_type): New core types.
(TypeManager.InitCoreTypes): Initialize them.
svn path=/trunk/mcs/; revision=27080
avoids throwing the Abort exception).
In mono_thread_manage, don't continue with the shutdown until all aborted
threads have actually stopped.
svn path=/trunk/mono/; revision=27076
(test-multi-local): Add logging of errors.
* runtest.pl: Change $errors and $warnings to keep track of lines
on which errors are supposed to occur.
svn path=/trunk/mcs/; revision=27068
* SqlMoney.cs : Handle fixed digits correctly.
Round decimal value before casting into other numeric types.
* SqlInt16.cs,
SqlInt32.cs,
SqlInt64.cs : Round SqlMoney decimal value before casting into them.
* SqlDateTime.cs :
Added range check.
Years and months were ignored in some .ctor().
Return invariant culture string in ToString().
Return null for operator - when operand is null.
svn path=/trunk/mcs/; revision=27067
* DataSetReadXmlSchemaTest.cs : SingleElementTreatmentDifference() was
incorrect. DataSet element is assumed only if there is only one
global element.
* DataSetReadXmlTest.cs : Added error-reported test case.
* DataSetInferXmlSchemaTest.cs : Modified more tests not to compare
Ordinal for non-specified columns (that shouldn't be significant).
svn path=/trunk/mcs/; revision=27065
* XmlNodeReader.cs : renamed ownerElement to ownerLinkedNode (text
node can be it as well) and added check for Attributes existence
in GetAttribute() and MoveTo*Attribute().
svn path=/trunk/mcs/; revision=27022
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws mor
e meaningful exceptions instead of throw NpgsqlException which are now exclusive
ly to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27009
* HashAlgorithm.cs,
NpgsqlAsciiRow.cs,
NpgsqlBinaryRow.cs,
NpgsqlClosedState.cs,
NpgsqlCommand.cs,
NpgsqlCommandBuilder.cs,
NpgsqlConnection.cs,
NpgsqlDataReader.cs,
NpgsqlException.cs,
NpgsqlParameterCollection.cs,
NpgsqlReadyState.cs,
NpgsqlTransaction.cs: Improved exception handling. Now Npgsql throws more meaningful exceptions instead of throw NpgsqlException which are now exclusively to sign server errors. Thanks Glen Parker ([email protected]) for the patch.
svn path=/trunk/mcs/; revision=27008
* monop.cs: seperate assembly loading into .GetAssembly method,
fail gracefully, and support loading assemblies from absolute and
relative paths
support /r: as well as -r:
svn path=/trunk/mcs/; revision=27007
* FileSystemWatcher.cs : csc build fix. Duplicate name between class
field and local variable. (already filed in bugzilla #47991).
svn path=/trunk/mcs/; revision=26997
to fix signature of OdbcConnection
* OdbcDataReader.cs: No longer use ODbcConnection.Datareader, in
order to fix signature of OdbcConnection
* OdbcConnection.cs: Signature fixes: removed DataReader property,
added setter for ConnectionTimeout, made transaction internal
* OdbcParameter.cs: reduced accessibility of Bind method to
internal, added setter for IsNullable
* OdbcParameterCollection.cs: made default ctor and Bind method
internal
svn path=/trunk/mcs/; revision=26991
* SqlDataSourceCommandEventArgs:
* XmlDataSource.cs : removed temporary workarounds for CLS
compliance as System.Data is now CLS compliant
svn path=/trunk/mcs/; revision=26983
* io.c: translate from GFileError to errno codes and don't free
variables right after calling mono_io_scandir, as we may overwrite
errno value.
svn path=/trunk/mono/; revision=26979
* DefaultWatcher.cs:
* FAMWatcher.cs: use MangledFilter instead of Filter.
* FileSystemWatcher.cs: added MangledFilter and finalizer.
* SearchPattern.cs: fixed the case when the pattern is "*".
svn path=/trunk/mcs/; revision=26978
* io.c: g_dir_open return ENOENT for directories on which we don't have
read/execute permission, while returning EPERM for anything below those.
So, change ENOENT by EPERM if the directory exists.
svn path=/trunk/mono/; revision=26970
* Makefile: build NUnit if the dll is not found when running
'make test'. Use INTERNAL_MCS to build the tests as csc fails miserably
to compile them.
svn path=/trunk/mcs/; revision=26968
* DSACryptoServiceProvider.cs: Fixed SignData to hash data before
signing it (thanks to Jens Thiel for spotting this).
svn path=/trunk/mcs/; revision=26932
* DSACryptoServiceProviderTest.cs: Added a new unit test for SignData
(was badly tested) and simplified test to reduce key pair generations.
svn path=/trunk/mcs/; revision=26931
* DataSet.cs :
In WriteXmlSchema(), when complex type contains simple type content
attributes must not added to XmlSchemaComplexType directly. It
causes schema compilation error.
DataRelation should not be output when related columns are hidden.
svn path=/trunk/mcs/; revision=26930
(ves_icall_System_Globalization_CultureInfo_internal_get_cultures):
Fix array construction, add bailout if the length is 0.
svn path=/trunk/mono/; revision=26922
* PasswordDerivceBytesTest.cs: Added new tests to complete
coverage.
* RSACryptoServiceProviderTest.cs: Added new tests to complete
coverage.
svn path=/trunk/mcs/; revision=26919
* io.c (FindFirstFile): Comment out a windows-compatibility check
that breaks when directories have metachars in their names.
Workaround for bug 58116.
svn path=/trunk/mono/; revision=26912
* ToBase64Transform.cs: Input block may be smaller than a full block
when calling TransformFinalBlock (fix 2 CryptoStream unit tests).
svn path=/trunk/mcs/; revision=26911
* ToBase64TransformTest.cs: Added a (legal) test where the final
transform receive data smaller than it's input block (padding).
svn path=/trunk/mcs/; revision=26910
* socket-io.c (addrinfo_to_IPHostEntry): Don't crash if the
machine doesn't have a DNS entry. Patch by Urs Muff
([email protected]), fixes bug 57928.
svn path=/trunk/mono/; revision=26908
* CipherMode.cs: Moved XML comments to monodoc.
* CryptoConfig.cs: Changed Array.Copy to Buffer.BlockCopy.
* CryptoStream.cs: Changed Array.Copy to Buffer.BlockCopy.
* DSA.cs: Changed Array.Copy to Buffer.BlockCopy.
* ICryptoTransform.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Changed Array.Copy to Buffer.BlockCopy.
* FromBase64Transform.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26907
* Convert.cs: ToBase64CharArray method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26906
* SequentialSearchPrimeGeneratorBase.cs: Start the smallPrime vector at
10 (not 9) as 29 was just tested (more for correctness than speed gain).
svn path=/trunk/mcs/; revision=26902
* PrimalityTests.cs: Applying optimization from HAC section 4.50
(base == 2) for a 30% gain in primality testing (medium confidence).
svn path=/trunk/mcs/; revision=26901
* BigInteger.cs: Faster scan of smallPrimes in IsProbablePrime.
Commented the methods OddModTwoPow and EvenModTwoPow as they are broken
in some cases (well tested primes test case).
svn path=/trunk/mcs/; revision=26900
Add a 'complain' parameter to silence errors.
(Attribute.Resolve): Update to changes. Put in sanity check to catch
silently overlooked type-resolutions.
(Attribute.ScanForIndexerName, Attribute.DefinePInvokeMethod): Update
to reflect changes.
(Attributes.Search): New function.
(Attributes.Contains, Attributes.GetClsCompliantAttribute): Use Search.
(Attributes.GetAttributeFullName): Remove hack.
* class.cs (MethodCore.LabelParameters, MethodData.ApplyAttributes):
Update to reflect changes.
* codegen.cs (CommonAssemblyModulClass.GetClsCompliantAttribute):
Use Attributes.Search instead of nested loops.
svn path=/trunk/mcs/; revision=26899
ImportMembersMapping call. This fixes bug #58112. The problem is that
it imported two different arrays (only different in the array item
namespace) with the same name. Not sure what was this Reset needed for,
everyting seems to work without it.
svn path=/trunk/mcs/; revision=26893
* XmlDataInferenceReader.cs : Added. It does InferXmlSchema() (it is
also expected to do ReadXml(), but I will remove that feature and
support column reordering).
* XmlSchemaDataImporter.cs : Always initialize dataset name.
Always set Nested and primary key for parent table.
* XmlDataReader.cs : Now it is used.
Top level element might not match to dataset name nor any table
name, but still possible to read content tables.
Handle empty element correctly in some places.
Handle Fragment mode (read up XmlReader to the end).
* DataSet.cs : Modified InferXmlSchema() and ReadXml() to use
XmlDataInferenceLoader and XmlDataReader.
svn path=/trunk/mcs/; revision=26889
* Makefile.am (bootstrap): New target for building from CVS. New
improved version of 'fullbuild' -- does not install any files.
(fullbuild): Obsolete target. Bootstraps and installs tree.
(mcs-tree-safe-build,xinstall-runtime,mcs-rest,remove-binaries):
Removed.
(stage1,stage1-mcs,stage1-mono,stage2,stage3)
(tmpinst-dir,tmpinst-runtime): New targets used to implement a
two-stage bootstrap.
svn path=/trunk/mono/; revision=26884
* RSAOAEPKeyExchangeDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAOAEPKeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1KeyExchangeDeformatterTest.cs: Updated unit tests to
complete coverage.
* RSAPKCS1KeyExchangeFormatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureDeformatterTest.cs: Updated unit tests to complete
coverage.
* RSAPKCS1SignatureFormatterTest.cs: Updated unit tests to complete
coverage.
svn path=/trunk/mcs/; revision=26860
* Directory.cs: use the real wildcard for file names as it is supported
now in io-layer. SearhPattern is not needed now.
svn path=/trunk/mcs/; revision=26856
* Convert.cs: ToBase64String method was depending on a bug in
S.S.C.ToBase64Transform class to work. Added an internal method to
provide the same functionality (multiple block processing).
svn path=/trunk/mcs/; revision=26850
* Rijndael.cs: Source clean up.
* RijndaelManaged.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
svn path=/trunk/mcs/; revision=26849
* RNGCryptoServiceProvider.cs: Removed TODO and documented them in
mono doc. Now call runtime when a seed is provided.
* RSA.cs: Added globalization to exceptions. Removed check for
<RSAKeyValue> as it is not checked by MS implementation.
* SignatureDescription.cs: Moved XML comments to monodoc. Added
globalization to exceptions. Removed TODO and added notes to monodoc.
* SymmetricAlgorithm.cs: Moved XML comments to monodoc. Added
globalization to exceptions.
* ToBase64Tranform.cs: Added missing exception handling. Moved XML
comments to monodoc.
svn path=/trunk/mcs/; revision=26848
* SHA1.cs: Moved XML comments to monodoc.
* SHA1CryptoServiceProvider.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA256.cs: Moved XML comments to monodoc.
* SHA256Managed.cs: Moved XML comments to monodoc. Removed CLSCompliance
attributes from private fields.
* SHA384.cs: Moved XML comments to monodoc.
* SHA512.cs: Moved XML comments to monodoc.
svn path=/trunk/mcs/; revision=26845
* RC2.cs: Fixed KeySize to change it's value and the EffectiveKeySize
when the key is changed.
* RC2CryptoServiceProvider.cs: Added globalization to exceptions.
Fixed the KeySize must be equal with EffectiveKeySize to match MS
implementation.
svn path=/trunk/mcs/; revision=26844
* mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
more portable.
* mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
svn path=/trunk/mono/; revision=26839
When deserializing an encoded method response, if the return type of the
method is Object, assign to it the first element of the message, whatever
it is.
* XmlSerializationReader.cs:
* SoapReflectionImporter.cs, XmlReflectionImporter.cs: Set IsReturnValue of
the imported member.
* TypeTranslator.cs: Added method to safely get a primitive TypeData.
* XmlSerializationReader.cs: Don't throw an exception when the CLR type for
a given xsi type is not found. Just read it as primitive type.
* XmlTypeMapMember.cs: Added IsReturnValue property.
* XmlTypeMapping.cs: Added ReturnMember property.
* XmlSerializer.cs: Reference System.Data when compiling the serializer.
svn path=/trunk/mcs/; revision=26836
* corlib_test.dll.sources: Added SymmetricAlgorithm2Test,
ToBaseTransformTest, TripleDESTest unit tests to the build.
svn path=/trunk/mcs/; revision=26834
* RNGCryptoServiceProviderTest.cs: Updated unit tests for exception
testing.
* RSATest.cs: Updated unit tests for importing XML key pairs.
* SymmetricAlgorithm2Test.cs: New. Non generated unit test for better
coverage (like exception testing).
* ToBase64TransformTest.cs: New. Unit tests to complete coverage of
ToBase64Transform.
* TripleDESTest.cs: New. Unit tests to complete coverage of TripleDES.
svn path=/trunk/mcs/; revision=26833
* DataSet.cs :
Eliminated CRLF injection.
More clear message in Clear().
Updates reflecting XmlSchemaDataImporter change.
Added duplicate check for XmlSerializerNamespaces in BuildSchema().
Don't use xmlns attribute for UnhandledAttributes (its not mandatory
but that depends on different behavior from ms.net).
Set locale also for DataTable.
Add xs:element only when target namespace matches to the
element's namespace. Otherwise, add xs:import for external namespace.
Put xs:sequence for dataset element's particle _only when_ actual
contents exist.
svn path=/trunk/mcs/; revision=26832
* ColorTranslator.cs: Fixed the existing methods and implemented
the missing methods.
* ColorConverter.cs: Fixed the existing methods and implemented
the missing methods. Also, fixed coding style.
svn path=/trunk/mcs/; revision=26831
* RC2Test.cs: Converted to NUnit 2. Uncommented some tests that throw
exceptions to test exception handling (and get more coverage).
* SHA256Test.cs: Corrected Setup attribtue (was [Test]).
svn path=/trunk/mcs/; revision=26830
* XmlDataReader.cs : Added. This class will work better when our
schema inference and schema read engine gets improved. (It contains
standalone testable Driver class.)
svn path=/trunk/mcs/; revision=26829
* ConstraintCollectionTest.cs : Table name should not be the same as
for the purpose of this test.
* DataSetReadXmlSchemaTest.cs : Added more tests based on schema files.
* DataSetTest.cs : Reordered attributes to pass test in
WriteDifferentNamespaceSchema().
svn path=/trunk/mcs/; revision=26822
Before the change the Enabled property wasn't updated when a postback
event was raised.
fixed SelectedIndex property implementation in ListControl.
Prevents throwing ArgumentOutOfRangeException (that should not be thrown),
when the list is empty.
svn path=/trunk/mcs/; revision=26817
* ManagedXslTransform.cs : For Stream input, use StreamWriter for
input to GenericOutputter. Passing XmlWriter causes unexpected
xml declaration output.
svn path=/trunk/mcs/; revision=26816
* NewMonoXSD.cs : Added new /generator:typename(,assemblyfile) option
support that enables users to use any CodeDomProvider.
Added VB support (/language:VB).
svn path=/trunk/mcs/; revision=26812
* mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
long reg allocation in any reg (not only eax:edx) and implemented
long shl/shr ops in asm instead of helpers.
svn path=/trunk/mono/; revision=26811
* rand.c|h: Added new icall for (optionally) seeding the PRNG. This
does nothing for now (not required for Linux/Windows) but the class
library can call it (and a newer or modified runtime could need it).
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26802
* io-private.h: 'namelist' is now a gchar ** in _WapiHandlePrivate_find.
* io.c: implemented scandir using glib functions.
svn path=/trunk/mono/; revision=26801
* AspParser.cs: indent a few lines.
* AspTokenizer.cs: added ungetc() used when we read a '/' in an unquoted
attribute value. This way we can simulate reading 2 characters ahead
(one in ungetc and the other in Peek) and work with values like
text/javascript. Fixes bug #57302.
svn path=/trunk/mcs/; revision=26798
* ConfigXmlDocument.cs: removed method that was supposed to be internal.
* ConfigurationSettings.cs: instead of calling the overload that doesn't
exist in MS, use what we have when loading an external file.
svn path=/trunk/mcs/; revision=26793
* ForeignKeyConstraintTest.cs : Made tests pass under MS.NET 1.1.
Don't catch every kind of exception. That does nothing but keep us
away from the exact error location.
* DataSetTest.cs : Make sure that we read schema correctly, before
testing WriteXmlSchema.
svn path=/trunk/mcs/; revision=26786
* System.Web.Services.dll.sources: removed HttpGetWebServiceHandler and
HttpPostWebServiceHandler.
* System.Web.Services.Protocols/HttpGetWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpPostWebServiceHandler.cs: removed.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs: changed
ctor parameters and added EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: added EnableSession
virtual property.
* System.Web.Services.Protocols/WebServiceHandlerFactory.cs: added a new
handler that implements IRequiresSessionState used for HttpGet and
HttpPost.
(GetHandler): for HttpGet and HttpPost check if the method requires to
have a Session object and use the new SimpleSyncSessionHandler in that
case.
Still missing proper session handler for SOAP requests.
svn path=/trunk/mcs/; revision=26782
* HttpSessionState.cs: added Clone (), which makes and exact copy but
with a cloned SessionDictionary. When EnableSessionState is set to
ReadOnly, we can modify the collection, but changes are not propagated.
* ISessionHandler.cs: changed signature of UpdateContext().
* SessionDictionary.cs: added Clone.
* SessionInProcHandler.cs:
* SessionSQLServerHandler.cs:
* SessionStateServerHandler.cs: don't create a new session if the handler
do not require it. UpdateContext() now returns an HttpSessionState to
the module.
* SessionStateModule.cs: removed IsReadOnly as it is now passed as a
parameter to the session handler. If the session is read-only, clone
it so that it can be changed but changes are not kept.
In short, we don't create session objects when not required and we
honor the ReadOnly sessions.
svn path=/trunk/mcs/; revision=26781
* Environment.cs: Completed OSVersion property.
* Version.cs: Added internal CreateFromString() to "try" to build the
best version number form the specified string.
svn path=/trunk/mcs/; revision=26777
* environment.c|h: Added icall ves_icall_System_Environment_
GetOSVersionString to get the current OS version as a string.
* icall.c: Registred icall.
svn path=/trunk/mono/; revision=26776
* CustomDataClassGenerator.cs : Modified that DataSet contains each
DataTable field so that each table property can access them directly.
(plus, modified standalone code driver code: shouldn't affect)
svn path=/trunk/mcs/; revision=26775
* DataColumnCollectionTest.cs : catch only specific exception. Don't
rely on localizable error message.
* DataSetTest.cs : Attribute orders should not be significant, so
just hacked to match current implementation's order.
Added WriteNestedTableXml().
svn path=/trunk/mcs/; revision=26774
* HashAlgorithm.cs: Moved XML comments to monodoc. Added globalization
to exceptions.
* KeyedHashAlgorithm.cs: Added globalization to exceptions.
* KeySizes.cs: Moved XML comments to monodoc.
* MaskGenerationMethod.cs: Source clean up.
* MD5.cs: Moved XML comments to monodoc.
* MD5CryptoServiceProvider.cs: Removed CLSCompliance attributes from
private fields. Changed constants from enum to array. Zeroize data on
Dispose.
* PaddingMode.cs: Moved XML comments to monodoc.
* PasswordDeriveBytes.cs: Added globalization to exceptions. Removed
TODO and documented as "not supported" in MonoDoc.
* RandomNumberGenerator.cs: Source clean up.
svn path=/trunk/mcs/; revision=26773
* mini-sparc.h: Fix warnings.
* exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
stack.
* mini-exceptions.c (mono_handle_exception): Call the filter in a
separate statement for clarity.
svn path=/trunk/mono/; revision=26770
When reading an object using the typeof(object) map, an emty xsi:type
means that it has to read the contents into an XmlNode[].
* TypeData.cs: Return the correct full name for inner classes.
* XmlSchemaImporter.cs: Improved detection of types that represent
"anyType", and must be mapped to XmlElement, XmlNode or Object.
* XmlSerializationReader.cs: In GetXsiType(), find the type attribute using
the correct namespace.
In ReadTypedPrimitive(), read the element as XmlNode[] if the type is
not known.
svn path=/trunk/mcs/; revision=26761
* SHA256Managed.cs: Updated to use shared constants.
* SHA384Managed.cs: Updated to use shared constants.
* SHA512Managed.cs: Updated to use shared constants.
* SHAConstants.cs: New. Shared constants for SHA implementations.
svn path=/trunk/mcs/; revision=26759
* Base64Constants.cs: New. Convert code into tables for better base64
performance.
* FromBase64Transform.cs: Updated to use the new tables. Source code
cleanup.
* ToBase64Transform.cs: Updated to use the new tables. Added
globalization. Commented finalizer as it isn't required in this case.
svn path=/trunk/mcs/; revision=26753
* object.c (mono_class_compute_gc_descriptor): Fix warning.
* object.c (mono_runtime_invoke_array): Add an assert so null cannot be
passed when a valuetype is expected.
* object.c (mono_unhandled_exception): Only set the exit code if the
exception happens in the main thread. Fixes thread5.exe.
svn path=/trunk/mono/; revision=26741
* BuiltInDatatype.cs : added BUGGY_MS_COMPLIANT condition and that
handles ms-compatible properties.
* XmlSchemaComplexType.cs : ditto for ContentTypeParticle of xs:anyType.
Make sure ContentType for xs:anyType is Mixed.
* XmlSchemaUtil.cs : ditto for <xs:attribute use="prohibited" ..>
svn path=/trunk/mcs/; revision=26737
* XmlSchema.cs : Write() handles schema namespace for xmlserializer
(it does not look to be handled inside xmlserializer).
svn path=/trunk/mcs/; revision=26735
* XmlDsigBase64Transform.cs : LoadInputAsXmlNodeList() is testable.
* XmlDsigC14NTransformTest.cs : Ignore LoadInputAsXmlNodeList(); that
test premises incorrect namespace handling.
* XmlDsigXPathTransformTest.cs : Removed some FIXMEs (counting node
will give more expected results),
plus some noise on FunctionHereObsolete().
svn path=/trunk/mcs/; revision=26732
* SignedXml.cs,
Transform.cs : code cleanup. #if !NET_1_0 -> #if NET_1_1.
* XmlDsigBase64Transform.cs : Should not output the content of the
selected element nodes. Put text content only those text nodes are
in the node list.
* XmlDsigEnvelopedSignatureTransform.cs : removed MonoTODO.
* XmlDsigXsltTransform.cs : Use XmlResolver to load document and
to transform. Throw null reference exception explicitly when
the input was not loaded.
svn path=/trunk/mcs/; revision=26731
* XmlSchemaDataImporter.cs :
SimpleContent column support.
Annotated relation support.
Top-level element is counted only when its type is complex.
xs:anyType is no longer treated as complex type.
dataset existence is mandatory now.
Improved DataType and DefaultValue support.
Attribute namespace is properly handled now.
Prohibited attribute is now treated as hidden column.
Reject list or union simple type.
Still incomplete 1) to read relationship in some cases, 2) to
determine whether an element is dataset or table, 3) thus to
exclude extraneous column, 4) to remove extraneous *_Id column.
svn path=/trunk/mcs/; revision=26730
* DataTable.cs :
We had better reuse DataSet's ReadXmlSchema() and ReadXml() in
serialization .ctor() (thus schema read/inference should be easier).
DataRowSorter should consider Table's Locale.
svn path=/trunk/mcs/; revision=26729
* ConstraintCollection.cs :
Use Table.CaseSensitive and Table.Locale to compare strings.
Duplicate constraint name exception does not occur under .NET 1.1.
svn path=/trunk/mcs/; revision=26727
* ConstraintCollectionTest.cs : uncommented some tests that should be
implemented until mono 1.0.
* ConstraintTest.cs : use ExpectedException. Don't expect localizable
error message.
* DataColumnTest.cs,
DataRelationTest.cs,
DataRowCollectionTest.cs : catch only specific type exception.
Don't rely on (test) localizable messages.
* DataSetAssertion.cs : We shouldn't expect exact column ordinals
when infering/reading the structures from documents/schemas.
svn path=/trunk/mcs/; revision=26726
* System.Web.Services/WebService.cs: added a HttpSessionState field
and a setter method. Session now returns null if EnableSession is not
set for the method invoked.
* System.Web.Services.Protocols/HttpSimpleWebServiceHandler.cs:
* System.Web.Services.Protocols/HttpSoapWebServiceHandler.cs: use
the session if the method has EnableSession set.
* System.Web.Services.Protocols/LogicalMethodInfo.cs: added
EnableSession property.
* System.Web.Services.Protocols/WebServiceHandler.cs: set the Session
object of the WebService.
Fixes bug #57905 (needs the latest DefaultWsdlHelpGenerator.aspx).
svn path=/trunk/mcs/; revision=26722
* data/DefaultWsdlHelpGenerator.aspx: add any cookie in the request to
the request we do for the actual web service.
svn path=/trunk/mono/; revision=26721
* daemon.c (read_message): Return FALSE on error so the GSource
callback itself can return FALSE. Cures the infinite loop poll()
warning on MacosX.
* shared.c: Fix some daemon startup race conditions.
svn path=/trunk/mono/; revision=26704
* WebConfigurationSettings.cs: now it defaults to 'web.config' and if
not found, 'Web.config'. Don't throw exception if both exists. Thanks
to urs and dru for bugging me about this.
svn path=/trunk/mcs/; revision=26698
* configure.in: check for SIGEV_THREAD being defined before checking
for AIO support. Fixes compilation under FreeBSD.
svn path=/trunk/mono/; revision=26690
* interp.c (ves_exec_method_with_context): Disable explicit assignment
of 'esi' to the ip variable, since it causes register allocation errors
on some versions of gcc. Fixes#58010.
svn path=/trunk/mono/; revision=26689
JIT_SUPPORTED.
(install-data-local, uninstall-data-local): Run runtime with
libtool.
* runtime/net_2_0/Makefile.am: Likewise.
Report from Urs C Muff <[email protected]>.
svn path=/trunk/mono/; revision=26685
2004-05-04 07:38:05 +00:00
1990 changed files with 103698 additions and 44608 deletions
staticjobjectJNICALLNewLocalRef(JNIEnv*env,jobjectref){printf("JNI Function NewLocalRef is not implemented.\n");g_assert_not_reached();return0;}
staticjintJNICALLEnsureLocalCapacity(JNIEnv*env,jintcapacity){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function AllocObject is not implemented.\n");g_assert_not_reached();return0;}
staticjobjectJNICALLAllocObject(JNIEnv*env,jclassclazz){printf("JNI Function EnsureLocalCapacity is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLGetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function GetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function GetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function GetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function GetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function GetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function GetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function GetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetBooleanArrayRegion(JNIEnv*env,jbooleanArrayarray,jsizestart,jsizel,jboolean*buf){printf("JNI Function SetBooleanArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetByteArrayRegion(JNIEnv*env,jbyteArrayarray,jsizestart,jsizelen,jbyte*buf){printf("JNI Function SetByteArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetCharArrayRegion(JNIEnv*env,jcharArrayarray,jsizestart,jsizelen,jchar*buf){printf("JNI Function SetCharArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetShortArrayRegion(JNIEnv*env,jshortArrayarray,jsizestart,jsizelen,jshort*buf){printf("JNI Function SetShortArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetIntArrayRegion(JNIEnv*env,jintArrayarray,jsizestart,jsizelen,jint*buf){printf("JNI Function SetIntArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetLongArrayRegion(JNIEnv*env,jlongArrayarray,jsizestart,jsizelen,jlong*buf){printf("JNI Function SetLongArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetFloatArrayRegion(JNIEnv*env,jfloatArrayarray,jsizestart,jsizelen,jfloat*buf){printf("JNI Function SetFloatArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLSetDoubleArrayRegion(JNIEnv*env,jdoubleArrayarray,jsizestart,jsizelen,jdouble*buf){printf("JNI Function SetDoubleArrayRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,jchar*buf){printf("JNI Function GetStringRegion is not implemented.\n");g_assert_not_reached();}
staticvoidJNICALLGetStringUTFRegion(JNIEnv*env,jstringstr,jsizestart,jsizelen,char*buf){printf("JNI Function GetStringUTFRegion is not implemented.\n");g_assert_not_reached();}
staticvoid*JNICALLGetPrimitiveArrayCritical(JNIEnv*env,jarrayarray,jboolean*isCopy){printf("JNI Function GetPrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleasePrimitiveArrayCritical(JNIEnv*env,jarrayarray,void*carray,jintmode){printf("JNI Function ReleasePrimitiveArrayCritical is not implemented.\n");g_assert_not_reached();}
staticconstjchar*JNICALLGetStringCritical(JNIEnv*env,jstringstring,jboolean*isCopy){printf("JNI Function GetStringCritical is not implemented.\n");g_assert_not_reached();returnNULL;}
staticvoidJNICALLReleaseStringCritical(JNIEnv*env,jstringstring,constjchar*cstring){printf("JNI Function ReleaseStringCritical is not implemented.\n");g_assert_not_reached();}
staticjweakJNICALLNewWeakGlobalRef(JNIEnv*env,jobjectobj){printf("JNI Function NewWeakGlobalRef is not implemented.\n");g_assert_not_reached();return0;}
staticvoidJNICALLDeleteWeakGlobalRef(JNIEnv*env,jweakref){printf("JNI Function DeleteWeakGlobalRef is not implemented.\n");g_assert_not_reached();}
MySql - Fixed ConnectionSTring editor dialog (thanks marco p (pomarc))
Common - UserId now supported in connection strings (thanks Jeff Neeley)
MySql - Attempting to create a parameter that is not input throws an exception (thanks Ryan Gregg)
11/29/2003
MySql - Added much documentation
11/26/2003
MySql - checked in new MultiHostStream capability. Big thanks to Dan Guisinger for this. he originally submitted the code and idea of supporting multiple machines on the connect string.
11/25/2003
MySql - Added alot of documentation. Still alot to do.
11/24/2003
MySql - Fixed speed issue with 0.73
11/14/2003
MySql - changed to Thread.Sleep(0) in MySqlDataStream to help optimize the case where it doesn't need to wait (thanks Todd German)
11/1/2003
MySql - Prepopulating the idlepools to MinPoolSize
10/31/2003
MySql - Fixed MySqlPool deadlock condition as well as stupid bug where CreateNewPooledConnection
was not ever adding new connections to the pool.
Also fixed MySqlStream.ReadBytes and ReadByte to not use TicksPerSecond which does not appear
to always be right.
(thanks Matthew J. Peddlesden)
MySql - Fix for precision and scale (thanks Matthew J. Peddlesden)
10/28/2003
MySql - Added Thread.Sleep(1) to stream reading methods to be more cpu friendly (thanks Sean McGinnis)
10/24/2003
MySql - Fixed problem where ExecuteReader would sometime return null (thanks Lloyd Dupont )
10/17/2003
MySql - Fixed major bug with null field handling (thanks Naucki)
10/15/2003
MySql - enclosed queries for max_allowed_packet and characterset inside try catch (and set defaults)
MySql - fixed problem where socket was not getting closed properly (thanks Steve!)
10/14/2003
MySql - Fixed problem where ExecuteNonQuery was not always returning the right value
10/13/2003
MySql - Fixed InternalConnection to not use @@session.max_allowed_packet but use @@max_allowed_packet. (Thanks Miguel)
10/12/2003
MySql - Added many new XML doc lines
10/10/2003
MySql - Fixed sql parsing to not send empty queries (thanks Rory)
MySql - Fixed problem where the reader was not unpeeking the packet on close
MySql - Fixed problem where user variables were not being handled (thanks Sami Vaaraniemi)
MySql - Fixed loop checking in the MySqlPool (thanks Steve M. Brown)
10/7/2003
MySql - Fixed ParameterCollection.Add method to match SqlClient (thanks Joshua Mouch)
Common & MySql - Fixed ConnectionSTring parsing to handle no and yes for boolean and not lowercase values (thanks Naucki)
10/3/2003
MySql - Added InternalConnection class, changes to pooling
Common - Implemented Persist Security Info
9/26/2003
Common - Added security.cs and version.cs to project
9/25/2003
MySql - Fixed DateTime handling in Parameter.cs (thanks Burkhard Perkens-Golomb)
MySql - Fixed parameter serialization where some types would throw a cast exception
MySql - Fixed DataReader to convert all returned values to prevent casting errors (thanks Keith Murray)
MySql - Added code to Command.ExecuteReader to return null if the initial SQL command throws an exception (thanks Burkhard Perkens-Golomb)
9/24/2003
MySql - Fixed ExecuteScalar bug introduced with restructure
9/23/2003
MySql - Restructure to allow for LOCAL DATA INFILE and better sequencing of packets
MySql - Fixed several bugs related to restructure.
9/10/2003
MySql - Early work done to support more secure passwords in Mysql 4.1. Old passwords in 4.1 not supported yet
8/22/2003
MySql- Parameters appearing after system parameters are now handled correctly (Adam M. (adammil))
MySql - strings can now be assigned directly to blob fields (Adam M.)
8/20/2003
MySql - Fixed float parameters (thanks Pent)
8/7/2003
MySql - Improved Parameter ctor and ParameterCollection.Add methods to better match SqlClient (thx Joshua Mouch )
MySql - Corrected Connection.CreateCommand to return a MySqlCommand type
MySql - Fixed connection string designer dialog box problem (thanks Abraham Guyt)
7/24/2003
MySql - Fixed problem with sending commands not always reading the response packet (thanks Joshua Mouch )
MySql - Fixed parameter serialization where some blobs types were not being handled (thanks Sean McGinnis )
7/22/2003
MySql - Removed spurious MessageBox.show from DataReader code (thanks Joshua Mouch )
7/17/2003
MySql - Fixed a nasty bug in the split sql code (thanks everyone! :-) )
*************Released 0.71***********************
7/15/2003
MySql - Fixed bug in MySqlStream where too much data could attempt to be read (thanks Peter Belbin)
7/11/2003
MySql - Implemented HasRows (thanks Nash Pherson)
MySql - Fixed bug where tables with more than 252 columns cause an exception ( thanks Joshua Kessler )
MySql - Fixed bug where SQL statements ending in ; would cause a problem ( thanks Shane Krueger )
MySql - Fixed bug in driver where error messsages were getting truncated by 1 character (thanks Shane Krueger)
7/6/2003
========MySql===============
* Made MySqlException serializable (thanks Mathias Hasselmann)
========PgSql===============
* Made PgSqlException serializable (thanks Mathias Hasselmann)
***********Released 0.70*********************
6/25/2003
========MySql===============
* Updated some of the character code pages to be more accurate
* Fixed problem where readers could be opened on connections that had readers open
* Release of 0.70
6/20/2003
========MySql===============
* Moved test to separate assembly MySqlClientTests
6/19/2003
========MySql===============
* Fixed stupid problem in driver with sequence out of order (Thanks Peter Belbin)
6/18/2003
========MySql===============
* Added some pipe tests
* Increased default max pool size to 50
* Compiles with Mono 0-24
6/17/2003
========MySql===============
* Fixed connection and data reader dispose problems
* Added String datatype handling to parameter serialization
6/13/2003
========MySql===============
* Fixed sequence problem in driver that occured after thrown exception
(thanks Burkhard Perkens-Golomb)
6/10/2003
========MySql===============
* Added support for CommandBehavior.SingleRow to DataReader
* Fixed command sql processing so quotes are better handled (thanks Theo Spears)
6/9/2003
========MySQL===============
* Fixed parsing of double, single, and decimal values to account for non-English separators.
You still have to use the right syntax if you using hard coded sql, but if you use parameters
the code will convert floating point types to use '.' appropriately internal both into the server
and out.
[ Thanks anonymous ]
* Added MySqlStream class to simplify timeOuts and driver coding.
* Fixed DataReader so that it is closed properly when the associated connection is closed.
[thanks smishra]
* Made client more SqlClient compliant so that DataReaders have to be closed before the connection
can be used to run another command
* Improved DBNull.Value handling in the fields
* Added several unit tests
* Fixed MySqlException so that the base class is actually called :-o
* Improved driver coding
=============PgSql=================
* Too many changes to document. Still basic structuring of driver. Driver not really usable yet.
5/28/2003
* Fixed bug where NextResult was returning false on the last resultset
* Added more tests for MySQL
* Improved casting problems by equating unsigned 32bit values to Int64 and usigned 16bit values to Int32, etc
5/6/2003
* Added new ctor for MySqlParameter for (name, type, size, srccol)
* Fixed bug in MySqlDataReader where it didn't check for null fieldlist before returning field count
4/23/2003
* Started adding MySqlClient unit tests (added MySqlClient/Tests folder and some test cases)
* Fixed some things in Connection String handling
4/7/2003
* Moved INIT_DB to MySqlPool. I may move it again, this is in preparation of the conference.
4/6/2003
* Fixed bug inside CommandBuilder that prevented inserts from happening properly
* Reworked some of the internals so that all three execute methods of Command worked properly
* FIxed many small bugs found during benchmarking
4/5/2003
* The first cut of CoonectionPooling is working. "min pool size" and "max pool size" are respected.
4/3/2003
* Work to enable multiple resultsets to be returned
* Character sets are handled much more intelligently now. The driver queries MySQL at startup for the default character set.
That character set is then used for conversions if that code page can be loaded. If not, then the default code
page for the current OS is used.
3/31/2003
* Added code to save the inferred type in the name,value ctor of Parameter
* Also, inferred type if value of null parameter is changed using Value property
* Converted all files to use proper Camel case. MySQL is now MySql in all files. PgSQL is now PgSql
* Added attribute to PgSql code to prevent designer from trying to show
3/17/2003
* Added MySQLDbType property to Parameter object and added proper conversion code to convert from DbType to MySQLDbType)
* Removed unused ObjectToString method from MySQLParameter.cs
* Fixed Add(..) method in ParameterCollection so that it doesn't use Add(name, value) instead.
* Fixed IndexOf and Contains in ParameterCollection to be aware that parameter names are now stored without @
* Fixed Command.ConvertSQLToBytes so it only allows characters that can be in MySQL variable names
* Fixed DataReader and Field so that blob fields read their data from Field.cs and GetBytes works right
* Added simple query builder editor to CommandText property of MySQLCommand
* Fixed CommandBuilder and Parameter serialization to account for Parameters not storing @ in their names
* Removed MySQLFieldType enum from Field.cs. Now using MySQLDbType enum
3/15/2003
* Added Designer attribute to several classes to prevent designer view when using VS.Net
3/13/2003
* Fixed Initial catalog typo in ConnectionString designer
* Removed 3 parameter ctor for MySQLParameter that conflicted with (name, type, value)
* changed MySQLParameter so paramName is now stored without leading @ (this fixed null inserts when using designer)
* Changed TypeConverter for MySQLParameter to use the ctor with all properties
Note that this build has not been checked out with Mono.
3/10/2003
* Fixed sequence issue in driver
3/9/2003
* Added DbParametersEditor to make parameter editing more like SqlClient
* Fixed Command class so that parameters can be edited using the designer
3/7/2003
* Update connection string designer to support Use Compression flag
2/15/2003
* Fixed string encoding so that European characters like ä will work correctly
2/9/2003
* Creating base classes to aid in building new data providers
* Added support for UID key in connection string
2/10/2003
* Field, parameter, command now using DBNull.Value instead of null
* CommandBuilder using DBNull.Value
* CommandBuilder now builds insert command correctly when an auto_insert field is not present
* Field now uses typeof keyword to return System.Types (performance)
0.65
====================
* MySQLCommandBuilder now implemented
* Transaction support now implemented (not all table types support this)
* GetSchemaTable fixed to not use xsd (for Mono)
* Driver is now Mono-compatible!!
* TIME data type now supported
* More work to improve Timestamp data type handling
* Changed signatures of all classes to match corresponding SqlClient classes
0.60
======================
* Protocol compression using SharpZipLib (www.icsharpcode.net)
* Named pipes on Windows now working properly
* Work done to improve Timestamp data type handling
* Implemented IEnumerable on DataReader so DataGrid would work
0.50
======================
* Speed increased dramatically by removing bugging network sync code
* Driver no longer buffers rows of data (more ADO.Net compliant)
* Conversion bugs related to TIMESTAMP and DATETIME fields fixed
3/11/2004
MySql - Changed command editor to point to MySqlClient.Design
3/4/2004
Common - Fixed bug in Version.isAtLeast
Common - Changed DBConnectionString to support changes done to MySqlConnectionString
Common - Removed SqlCommandEditor and DataAdapterPreviewDialog
3/3/2004
MySql - Using new long return values in many places
MySql - Integrated new CompressedStream class
3/2/2004
MySql - Changed ConnectionString and added attributes to allow it to be used in MySqlClient.Design
MySql - Changed packet.cs to support newer lengths in ReadLenInteger
MySql - changed other classes to use new properties and fields of MySqlConnectionString
MySql - ConnectionInternal is now using PING to see if the server is alive
3/1/2004
MySql - Moved toolbox bitmaps into resource/
MySql - Changed field.cs to allow values to come directly from row buffer
2/25/2004
MySql - Changed to use the new driver.Send syntax
MySql - Using a new packet queueing system
MySql - started work handling the "broken" compression packet handling
2/20/2004
Common - Fixed bug in StreamCreator where failure to connect to a host would continue
to loop infinitly (thanks Kevin Casella)
2/8/2004
MySql - Improved connectstring handling
MySql - Moved designers into Pro product
2/4/2004
MySql - Removed some old commented out code from command.cs
MySql - Fixed a problem with compression
2/2/2004
MySql - Fixed connection object where an exception throw prior to the connection opening would not leave
the connection in the connecting state (thanks Chris Cline )
1/31/2004
MySql - Added GUID support
MySql - Fixed sequence out of order bug (thanks Mark Reay)
1/26/2004
MySql - Enum values now supported as parameter values (thanks Philipp Sumi)
1/22/2004
MySql - Year datatype now supported
1/21/2004
MySql - fixed compression
1/20/2004
MySql - Fixed bug where a parameter with a TimeSpan as the value would not serialize properly
MySql,Common - Fixed bug where default ctor would not set default connection string values
MySql - Added some XML comments to some members
MySql - Work to fix/improve compression handling
1/13/2004
MySql,Common - Improved ConnectionString handling so that it better matches the standard set by SqlClient.
MySql - A MySqlException is now thrown if a username is not included in the connection string
MySql- Localhost is now used as the default if not specified on the connection string
MySql - An exception is now thrown if an attempt is made to set the connection string while the connection is open
MySql - Small changes to ConnectionString docs
MySql,common - Removed MultiHostStream and MySqlStream. Replaced it with Common/StreamCreator
MySql - Added support for Use Pipe connection string value
MySql - Added Platform class for easier access to platform utility functions
MySql - Fixed small pooling bug where new connection was not getting created after IsAlive fails
Common - Added Platform.cs and StreamCreator.cs
12/30/2003
MySql - Fixed Field.cs to properly handle 4.1 style timestamps
MySql - Changed Common.Version to Common.DBVersion to avoid name conflict
12/29/2003
MySql - Fixed field.cs so that text columns return the right field type (thanks [email protected]et)
12/22/2003
MySql - Added MySqlError class to provide some reference for error codes (thanks Geert Veenstra)
------------0.74 ------------------------
12/6/2003
MySql - Added Unix socket support (thanks Mohammad DAMT [[email protected]])
12/4/2003
MySql - only calling Thread.Sleep when no data is available
MySql - improved escaping of quote characters in parameter data
MySql - removed misleading comments from parameter.cs
12/1/2003
Mysql -fixed pooling bug
MySql - same pooling bug fixed again!! ;-)
11/30/2003
MySql - Fixed ConnectionSTring editor dialog (thanks marco p (pomarc))
Common - UserId now supported in connection strings (thanks Jeff Neeley)
MySql - Attempting to create a parameter that is not input throws an exception (thanks Ryan Gregg)
11/29/2003
MySql - Added much documentation
11/26/2003
MySql - checked in new MultiHostStream capability. Big thanks to Dan Guisinger for this. he originally submitted the code and idea of supporting multiple machines on the connect string.
11/25/2003
MySql - Added alot of documentation. Still alot to do.
11/24/2003
MySql - Fixed speed issue with 0.73
11/14/2003
MySql - changed to Thread.Sleep(0) in MySqlDataStream to help optimize the case where it doesn't need to wait (thanks Todd German)
11/1/2003
MySql - Prepopulating the idlepools to MinPoolSize
10/31/2003
MySql - Fixed MySqlPool deadlock condition as well as stupid bug where CreateNewPooledConnection
was not ever adding new connections to the pool.
Also fixed MySqlStream.ReadBytes and ReadByte to not use TicksPerSecond which does not appear
to always be right.
(thanks Matthew J. Peddlesden)
MySql - Fix for precision and scale (thanks Matthew J. Peddlesden)
10/28/2003
MySql - Added Thread.Sleep(1) to stream reading methods to be more cpu friendly (thanks Sean McGinnis)
10/24/2003
MySql - Fixed problem where ExecuteReader would sometime return null (thanks Lloyd Dupont )
10/17/2003
MySql - Fixed major bug with null field handling (thanks Naucki)
10/15/2003
MySql - enclosed queries for max_allowed_packet and characterset inside try catch (and set defaults)
MySql - fixed problem where socket was not getting closed properly (thanks Steve!)
10/14/2003
MySql - Fixed problem where ExecuteNonQuery was not always returning the right value
10/13/2003
MySql - Fixed InternalConnection to not use @@session.max_allowed_packet but use @@max_allowed_packet. (Thanks Miguel)
10/12/2003
MySql - Added many new XML doc lines
10/10/2003
MySql - Fixed sql parsing to not send empty queries (thanks Rory)
MySql - Fixed problem where the reader was not unpeeking the packet on close
MySql - Fixed problem where user variables were not being handled (thanks Sami Vaaraniemi)
MySql - Fixed loop checking in the MySqlPool (thanks Steve M. Brown)
10/7/2003
MySql - Fixed ParameterCollection.Add method to match SqlClient (thanks Joshua Mouch)
Common & MySql - Fixed ConnectionSTring parsing to handle no and yes for boolean and not lowercase values (thanks Naucki)
10/3/2003
MySql - Added InternalConnection class, changes to pooling
Common - Implemented Persist Security Info
9/26/2003
Common - Added security.cs and version.cs to project
9/25/2003
MySql - Fixed DateTime handling in Parameter.cs (thanks Burkhard Perkens-Golomb)
MySql - Fixed parameter serialization where some types would throw a cast exception
MySql - Fixed DataReader to convert all returned values to prevent casting errors (thanks Keith Murray)
MySql - Added code to Command.ExecuteReader to return null if the initial SQL command throws an exception (thanks Burkhard Perkens-Golomb)
9/24/2003
MySql - Fixed ExecuteScalar bug introduced with restructure
9/23/2003
MySql - Restructure to allow for LOCAL DATA INFILE and better sequencing of packets
MySql - Fixed several bugs related to restructure.
9/10/2003
MySql - Early work done to support more secure passwords in Mysql 4.1. Old passwords in 4.1 not supported yet
8/22/2003
MySql- Parameters appearing after system parameters are now handled correctly (Adam M. (adammil))
MySql - strings can now be assigned directly to blob fields (Adam M.)
8/20/2003
MySql - Fixed float parameters (thanks Pent)
8/7/2003
MySql - Improved Parameter ctor and ParameterCollection.Add methods to better match SqlClient (thx Joshua Mouch )
MySql - Corrected Connection.CreateCommand to return a MySqlCommand type
MySql - Fixed connection string designer dialog box problem (thanks Abraham Guyt)
7/24/2003
MySql - Fixed problem with sending commands not always reading the response packet (thanks Joshua Mouch )
MySql - Fixed parameter serialization where some blobs types were not being handled (thanks Sean McGinnis )
7/22/2003
MySql - Removed spurious MessageBox.show from DataReader code (thanks Joshua Mouch )
7/17/2003
MySql - Fixed a nasty bug in the split sql code (thanks everyone! :-) )
*************Released 0.71***********************
7/15/2003
MySql - Fixed bug in MySqlStream where too much data could attempt to be read (thanks Peter Belbin)
7/11/2003
MySql - Implemented HasRows (thanks Nash Pherson)
MySql - Fixed bug where tables with more than 252 columns cause an exception ( thanks Joshua Kessler )
MySql - Fixed bug where SQL statements ending in ; would cause a problem ( thanks Shane Krueger )
MySql - Fixed bug in driver where error messsages were getting truncated by 1 character (thanks Shane Krueger)
7/6/2003
========MySql===============
* Made MySqlException serializable (thanks Mathias Hasselmann)
========PgSql===============
* Made PgSqlException serializable (thanks Mathias Hasselmann)
***********Released 0.70*********************
6/25/2003
========MySql===============
* Updated some of the character code pages to be more accurate
* Fixed problem where readers could be opened on connections that had readers open
* Release of 0.70
6/20/2003
========MySql===============
* Moved test to separate assembly MySqlClientTests
6/19/2003
========MySql===============
* Fixed stupid problem in driver with sequence out of order (Thanks Peter Belbin)
6/18/2003
========MySql===============
* Added some pipe tests
* Increased default max pool size to 50
* Compiles with Mono 0-24
6/17/2003
========MySql===============
* Fixed connection and data reader dispose problems
* Added String datatype handling to parameter serialization
6/13/2003
========MySql===============
* Fixed sequence problem in driver that occured after thrown exception
(thanks Burkhard Perkens-Golomb)
6/10/2003
========MySql===============
* Added support for CommandBehavior.SingleRow to DataReader
* Fixed command sql processing so quotes are better handled (thanks Theo Spears)
6/9/2003
========MySQL===============
* Fixed parsing of double, single, and decimal values to account for non-English separators.
You still have to use the right syntax if you using hard coded sql, but if you use parameters
the code will convert floating point types to use '.' appropriately internal both into the server
and out.
[ Thanks anonymous ]
* Added MySqlStream class to simplify timeOuts and driver coding.
* Fixed DataReader so that it is closed properly when the associated connection is closed.
[thanks smishra]
* Made client more SqlClient compliant so that DataReaders have to be closed before the connection
can be used to run another command
* Improved DBNull.Value handling in the fields
* Added several unit tests
* Fixed MySqlException so that the base class is actually called :-o
* Improved driver coding
=============PgSql=================
* Too many changes to document. Still basic structuring of driver. Driver not really usable yet.
5/28/2003
* Fixed bug where NextResult was returning false on the last resultset
* Added more tests for MySQL
* Improved casting problems by equating unsigned 32bit values to Int64 and usigned 16bit values to Int32, etc
5/6/2003
* Added new ctor for MySqlParameter for (name, type, size, srccol)
* Fixed bug in MySqlDataReader where it didn't check for null fieldlist before returning field count
4/23/2003
* Started adding MySqlClient unit tests (added MySqlClient/Tests folder and some test cases)
* Fixed some things in Connection String handling
4/7/2003
* Moved INIT_DB to MySqlPool. I may move it again, this is in preparation of the conference.
4/6/2003
* Fixed bug inside CommandBuilder that prevented inserts from happening properly
* Reworked some of the internals so that all three execute methods of Command worked properly
* FIxed many small bugs found during benchmarking
4/5/2003
* The first cut of CoonectionPooling is working. "min pool size" and "max pool size" are respected.
4/3/2003
* Work to enable multiple resultsets to be returned
* Character sets are handled much more intelligently now. The driver queries MySQL at startup for the default character set.
That character set is then used for conversions if that code page can be loaded. If not, then the default code
page for the current OS is used.
3/31/2003
* Added code to save the inferred type in the name,value ctor of Parameter
* Also, inferred type if value of null parameter is changed using Value property
* Converted all files to use proper Camel case. MySQL is now MySql in all files. PgSQL is now PgSql
* Added attribute to PgSql code to prevent designer from trying to show
3/17/2003
* Added MySQLDbType property to Parameter object and added proper conversion code to convert from DbType to MySQLDbType)
* Removed unused ObjectToString method from MySQLParameter.cs
* Fixed Add(..) method in ParameterCollection so that it doesn't use Add(name, value) instead.
* Fixed IndexOf and Contains in ParameterCollection to be aware that parameter names are now stored without @
* Fixed Command.ConvertSQLToBytes so it only allows characters that can be in MySQL variable names
* Fixed DataReader and Field so that blob fields read their data from Field.cs and GetBytes works right
* Added simple query builder editor to CommandText property of MySQLCommand
* Fixed CommandBuilder and Parameter serialization to account for Parameters not storing @ in their names
* Removed MySQLFieldType enum from Field.cs. Now using MySQLDbType enum
3/15/2003
* Added Designer attribute to several classes to prevent designer view when using VS.Net
3/13/2003
* Fixed Initial catalog typo in ConnectionString designer
* Removed 3 parameter ctor for MySQLParameter that conflicted with (name, type, value)
* changed MySQLParameter so paramName is now stored without leading @ (this fixed null inserts when using designer)
* Changed TypeConverter for MySQLParameter to use the ctor with all properties
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Text;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Automatically generates single-table commands used to reconcile changes made to a DataSet with the associated MySQL database. This class cannot be inherited.
/// Gets or sets the beginning character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuotePrefix
{
get{return_QuotePrefix;}
set{_QuotePrefix=value;}
}
/// <summary>
/// Gets or sets the ending character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuoteSuffix
{
get{return_QuoteSuffix;}
set{_QuoteSuffix=value;}
}
#endregion
#regionPublicMethods
/// <summary>
/// Retrieves parameter information from the stored procedure specified in the MySqlCommand and populates the Parameters collection of the specified MySqlCommand object.
/// This method is not currently supported since stored procedures are not available in MySql.
/// </summary>
/// <param name="command">The MySqlCommand referencing the stored procedure from which the parameter information is to be derived. The derived parameters are added to the Parameters collection of the MySqlCommand.</param>
/// <exception cref="InvalidOperationException">The command text is not a valid stored procedure name.</exception>
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Text;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Automatically generates single-table commands used to reconcile changes made to a DataSet with the associated MySQL database. This class cannot be inherited.
/// Gets or sets the beginning character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuotePrefix
{
get{return_QuotePrefix;}
set{_QuotePrefix=value;}
}
/// <summary>
/// Gets or sets the ending character or characters to use when specifying MySql database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.
/// </summary>
publicstringQuoteSuffix
{
get{return_QuoteSuffix;}
set{_QuoteSuffix=value;}
}
#endregion
#regionPublicMethods
/// <summary>
/// Retrieves parameter information from the stored procedure specified in the MySqlCommand and populates the Parameters collection of the specified MySqlCommand object.
/// This method is not currently supported since stored procedures are not available in MySql.
/// </summary>
/// <param name="command">The MySqlCommand referencing the stored procedure from which the parameter information is to be derived. The derived parameters are added to the Parameters collection of the MySqlCommand.</param>
/// <exception cref="InvalidOperationException">The command text is not a valid stored procedure name.</exception>
CLIENT_COMPRESS=32,// Client can use compression protocol
CLIENT_ODBC=64,// ODBC client
CLIENT_LOCAL_FILES=128,// Can use LOAD DATA LOCAL
CLIENT_IGNORE_SPACE=256,// Ignore spaces before '('
CLIENT_CHANGE_USER=512,// Support the mysql_change_user()
CLIENT_INTERACTIVE=1024,// This is an interactive client
CLIENT_SSL=2048,// Switch to SSL after handshake
CLIENT_IGNORE_SIGPIPE=4096,// IGNORE sigpipes
CLIENT_TRANSACTIONS=8192,// Client knows about transactions
CLIENT_PROTOCOL_41=16384,
CLIENT_SECURE_CONNECTION=32768
}
/// <summary>
/// DB Operations Code
/// </summary>
internalenumDBCmd:byte
{
SLEEP=0,
QUIT=1,
INIT_DB=2,
QUERY=3,
FIELD_LIST=4,
CREATE_DB=5,
DROP_DB=6,
RELOAD=7,
SHUTDOWN=8,
STATISTICS=9,
PROCESS_INFO=10,
CONNECT=11,
PROCESS_KILL=12,
DEBUG=13,
PING=14,
TIME=15,
DELAYED_INSERT=16,
CHANGE_USER=17,
}
/// <summary>
/// Specifies MySQL specific data type of a field, property, for use in a <see cref="MySqlParameter"/>.
/// </summary>
publicenumMySqlDbType
{
/// <summary> <see cref="Decimal"/><para>A fixed precision and scale numeric value between -1038 -1 and 10 38 -1.</para></summary>
Decimal=0,
/// <summary> <see cref="Byte"/><para>The signed range is -128 to 127. The unsigned range is 0 to 255.</para></summary>
Byte=1,
/// <summary><see cref="Int16"/><para>A 16-bit signed or unsigned integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535</para></summary>
Short=2,
/// <summary><see cref="Int32"/><para>A 32-bit signed or unsigned integer</para></summary>
Int=3,
/// <summary><b>Obsolete</b> Please use Int for 32 bit values</summary>
[Obsolete("Long is no longer the correct way of specifying a 32 bit value. Use Int")]
Long=3,
/// <summary><see cref="Single"/><para>A small (single-precision) floating-point number. Allowable values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38.</para></summary>
Float=4,
/// <summary><see cref="Double"/><para>A normal-size (double-precision) floating-point number. Allowable values are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308.</para></summary>
Double=5,
/// <summary>Specifies a null value</summary>
Null=6,
/// <summary>A timestamp. The range is '1970-01-01 00:00:00' to sometime in the year 2037</summary>
Timestamp=7,
/// <summary><see cref="Int64"/><para>A 64-bit signed or unsigned integer.</para></summary>
BigInt=8,
/// <summary><b>Obsolete</b> Please use BigInt for 64 bit values</summary>
[Obsolete("LongLong is no longer the correct way of specifying a 64 bit value. Use BigInt")]
LongLong=8,
/// <summary>Specifies a 24 (3 byte) signed or unsigned value.</summary>
Int24=9,
///<summary>Date The supported range is '1000-01-01' to '9999-12-31'.</summary>
Date=10,
/// <summary> Time <para>The range is '-838:59:59' to '838:59:59'.</para></summary>
Time=11,
///<summary>DateTime The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.</summary>
Datetime=12,
/// <summary>A year in 2- or 4-digit format (default is 4-digit). The allowable values are 1901 to 2155, 0000 in the 4-digit year format, and 1970-2069 if you use the 2-digit format (70-69)</summary>
Year=13,
/// <summary><b>Obsolete</b> Use Datetime or Date type</summary>
Newdate=14,
/// <summary>An enumeration. A string object that can have only one value, chosen from the list of values 'value1', 'value2', ..., NULL or the special "" error value. An ENUM can have a maximum of 65535 distinct values</summary>
Enum=247,
/// <summary>A set. A string object that can have zero or more values, each of which must be chosen from the list of values 'value1', 'value2', ... A SET can have a maximum of 64 members.</summary>
Set=248,
/// <summary>A BLOB or TEXT column with a maximum length of 255 (2^8 - 1) characters</summary>
TinyBlob=249,
/// <summary>A BLOB or TEXT column with a maximum length of 16777215 (2^24 - 1) characters</summary>
MediumBlob=250,
/// <summary>A BLOB or TEXT column with a maximum length of 4294967295 or 4G (2^32 - 1) characters</summary>
LongBlob=251,
/// <summary>A BLOB or TEXT column with a maximum length of 65535 (2^16 - 1) characters</summary>
Blob=252,
/// <summary>A variable-length string containing 0 to 255 characters</summary>
VarChar=253,
/// <summary><b>Obsolete</b> Use VarChar type</summary>
String=254
};
enumField_Type:byte
{
DECIMAL=0,
BYTE=1,
SHORT=2,
LONG=3,
FLOAT=4,
DOUBLE=5,
NULL=6,
TIMESTAMP=7,
LONGLONG=8,
INT24=9,
DATE=10,
TIME=11,
DATETIME=12,
YEAR=13,
NEWDATE=14,
ENUM=247,
SET=248,
TINY_BLOB=249,
MEDIUM_BLOB=250,
LONG_BLOB=251,
BLOB=252,
VAR_STRING=253,
STRING=254,
}
}
// ByteFX.Data data access components for .Net
// Copyright (C) 2002-2003 ByteFX, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Summary description for ClientParam.
/// </summary>
[Flags()]
internalenumClientParam
{
CLIENT_LONG_PASSWORD=1,// new more secure passwords
CLIENT_FOUND_ROWS=2,// found instead of affected rows
CLIENT_LONG_FLAG=4,// Get all column flags
CLIENT_CONNECT_WITH_DB=8,// One can specify db on connect
CLIENT_COMPRESS=32,// Client can use compression protocol
CLIENT_ODBC=64,// ODBC client
CLIENT_LOCAL_FILES=128,// Can use LOAD DATA LOCAL
CLIENT_IGNORE_SPACE=256,// Ignore spaces before '('
CLIENT_CHANGE_USER=512,// Support the mysql_change_user()
CLIENT_INTERACTIVE=1024,// This is an interactive client
CLIENT_SSL=2048,// Switch to SSL after handshake
CLIENT_IGNORE_SIGPIPE=4096,// IGNORE sigpipes
CLIENT_TRANSACTIONS=8192,// Client knows about transactions
CLIENT_PROTOCOL_41=16384,
CLIENT_SECURE_CONNECTION=32768
}
/// <summary>
/// DB Operations Code
/// </summary>
internalenumDBCmd:byte
{
SLEEP=0,
QUIT=1,
INIT_DB=2,
QUERY=3,
FIELD_LIST=4,
CREATE_DB=5,
DROP_DB=6,
RELOAD=7,
SHUTDOWN=8,
STATISTICS=9,
PROCESS_INFO=10,
CONNECT=11,
PROCESS_KILL=12,
DEBUG=13,
PING=14,
TIME=15,
DELAYED_INSERT=16,
CHANGE_USER=17,
}
/// <summary>
/// Specifies MySQL specific data type of a field, property, for use in a <see cref="MySqlParameter"/>.
/// </summary>
publicenumMySqlDbType
{
/// <summary> <see cref="Decimal"/><para>A fixed precision and scale numeric value between -1038 -1 and 10 38 -1.</para></summary>
Decimal=0,
/// <summary> <see cref="Byte"/><para>The signed range is -128 to 127. The unsigned range is 0 to 255.</para></summary>
Byte=1,
/// <summary><see cref="Int16"/><para>A 16-bit signed or unsigned integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535</para></summary>
Short=2,
/// <summary><see cref="Int32"/><para>A 32-bit signed or unsigned integer</para></summary>
Int=3,
/// <summary><b>Obsolete</b> Please use Int for 32 bit values</summary>
[Obsolete("Long is no longer the correct way of specifying a 32 bit value. Use Int")]
Long=3,
/// <summary><see cref="Single"/><para>A small (single-precision) floating-point number. Allowable values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38.</para></summary>
Float=4,
/// <summary><see cref="Double"/><para>A normal-size (double-precision) floating-point number. Allowable values are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308.</para></summary>
Double=5,
/// <summary>Specifies a null value</summary>
Null=6,
/// <summary>A timestamp. The range is '1970-01-01 00:00:00' to sometime in the year 2037</summary>
Timestamp=7,
/// <summary><see cref="Int64"/><para>A 64-bit signed or unsigned integer.</para></summary>
BigInt=8,
/// <summary><b>Obsolete</b> Please use BigInt for 64 bit values</summary>
[Obsolete("LongLong is no longer the correct way of specifying a 64 bit value. Use BigInt")]
LongLong=8,
/// <summary>Specifies a 24 (3 byte) signed or unsigned value.</summary>
Int24=9,
///<summary>Date The supported range is '1000-01-01' to '9999-12-31'.</summary>
Date=10,
/// <summary> Time <para>The range is '-838:59:59' to '838:59:59'.</para></summary>
Time=11,
///<summary>DateTime The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'.</summary>
Datetime=12,
/// <summary>A year in 2- or 4-digit format (default is 4-digit). The allowable values are 1901 to 2155, 0000 in the 4-digit year format, and 1970-2069 if you use the 2-digit format (70-69)</summary>
Year=13,
/// <summary><b>Obsolete</b> Use Datetime or Date type</summary>
Newdate=14,
/// <summary>An enumeration. A string object that can have only one value, chosen from the list of values 'value1', 'value2', ..., NULL or the special "" error value. An ENUM can have a maximum of 65535 distinct values</summary>
Enum=247,
/// <summary>A set. A string object that can have zero or more values, each of which must be chosen from the list of values 'value1', 'value2', ... A SET can have a maximum of 64 members.</summary>
Set=248,
/// <summary>A BLOB or TEXT column with a maximum length of 255 (2^8 - 1) characters</summary>
TinyBlob=249,
/// <summary>A BLOB or TEXT column with a maximum length of 16777215 (2^24 - 1) characters</summary>
MediumBlob=250,
/// <summary>A BLOB or TEXT column with a maximum length of 4294967295 or 4G (2^32 - 1) characters</summary>
LongBlob=251,
/// <summary>A BLOB or TEXT column with a maximum length of 65535 (2^16 - 1) characters</summary>
Blob=252,
/// <summary>A variable-length string containing 0 to 255 characters</summary>
VarChar=253,
/// <summary><b>Obsolete</b> Use VarChar type</summary>
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem.Data;
usingSystem.Data.Common;
usingSystem.ComponentModel;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Represents a set of data commands and a database connection that are used to fill a dataset and update a MySQL database. This class cannot be inherited.
/// Gets or sets the MySqlCommand executed when Update is called.
/// </summary>
newpublicMySqlCommandCommand
{
get{return(MySqlCommand)base.Command;}
}
}
}
// ByteFX.Data data access components for .Net
// Copyright (C) 2002-2003 ByteFX, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem.Data;
usingSystem.Data.Common;
usingSystem.ComponentModel;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Represents a set of data commands and a database connection that are used to fill a dataset and update a MySQL database. This class cannot be inherited.
<td><para>The name or network address of the instance of MySQL to which to connect. Multiple hosts can be
specified separated by &. This can be useful where multiple MySQL servers are configured for replication
and you are not concerned about the precise server you are connecting to. No attempt is made by the provider to
synchronize writes to the database so care should be taken when using this option.
</para>
<para>
In Unix environment with Mono, this can be a fully qualified path to MySQL socket filename. With this configuration, the Unix socket will be used instead of TCP/IP socket.
Currently only a single socket name can be given so accessing MySQL in a replicated environment using Unix sockets is not currently supported.
</para>
</td>
</tr>
<tr>
<td>Port</td>
<td>3306</td>
<td>The port MySQL is using to listen for connections. Specify -1 for this value to use a
named pipe connection (Windows only). This value is ignored if Unix socket is used.</td>
</tr>
<tr>
<td>Encrypt</td>
<td>false</td>
<td>When <B>true</B>, SSL encryption is used for all data sent between the
client and server if the server has a certificate installed. Recognized values
are <B>true</B>, <B>false</B>, <B>yes</B>, and <B>no</B>.<para><b>Note</b> This parameter currently has no
The following example creates a <seecref="MySqlConnection"/> in Unix environment with Mono installed. MySQL socket filename used in this example is "/var/lib/mysql/mysql.sock". The actual filename depends on your MySQL configuration.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.Data;
usingSystem.Collections;
usingSystem.ComponentModel;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Represents a collection of parameters relevant to a <see cref="MySqlCommand"/> as well as their respective mappings to columns in a <see cref="DataSet"/>. This class cannot be inherited.
/// Adds a <see cref="MySqlParameter"/> to the <see cref="MySqlParameterCollection"/> with the parameter name, the data type, the column length, and the source column name.
/// </summary>
/// <param name="parameterName">The name of the parameter.</param>
/// <param name="dbType">One of the <see cref="MySqlDbType"/> values. </param>
/// <param name="size">The length of the column.</param>
/// <param name="sourceColumn">The name of the source column.</param>
/// <returns>The index of the new <see cref="MySqlParameter"/> object.</returns>
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
usingSystem;
usingSystem.Data;
usingSystem.Collections;
usingSystem.ComponentModel;
namespaceByteFX.Data.MySqlClient
{
/// <summary>
/// Represents a collection of parameters relevant to a <see cref="MySqlCommand"/> as well as their respective mappings to columns in a <see cref="DataSet"/>. This class cannot be inherited.
/// Adds a <see cref="MySqlParameter"/> to the <see cref="MySqlParameterCollection"/> with the parameter name, the data type, the column length, and the source column name.
/// </summary>
/// <param name="parameterName">The name of the parameter.</param>
/// <param name="dbType">One of the <see cref="MySqlDbType"/> values. </param>
/// <param name="size">The length of the column.</param>
/// <param name="sourceColumn">The name of the source column.</param>
/// <returns>The index of the new <see cref="MySqlParameter"/> object.</returns>
Loaded 100 of 1990 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.