4 // Provide definition for the Field class
5 // Part of the C# bindings to MySQL library libMySQL.dll
8 // Brad Merrill <zbrad@cybercom.net>
10 // (C)Copyright 2002 Brad Merril
12 // http://www.cybercom.net/~zbrad/DotNet/MySql/
14 // Mono has gotten permission from Brad Merrill to include in
15 // the Mono Class Library
16 // his C# bindings to MySQL under the X11 License
18 // Mono can be found at http://www.go-mono.com/
19 // The X11/MIT License can be found
20 // at http://www.opensource.org/licenses/mit-license.html
24 namespace Mono.Data.MySql {
25 using System.Runtime.InteropServices;
29 /// MySql P/Invoke implementation test program
34 /// This structure contains information about a field, such as the
35 /// field's name, type, and size. Its members are described in more
36 /// detail below. You may obtain the <see cref="Field"/> structures for
37 /// each field by calling
38 /// <see cref="MySql.FetchField"/>
40 /// Field values are not part of this structure;
41 /// they are contained in a Row structure.
44 [StructLayout(LayoutKind.Sequential)]
46 ///<value>name of column</value>
47 [MarshalAs(UnmanagedType.LPStr)]
49 ///<value>table of column</value>
50 [MarshalAs(UnmanagedType.LPStr)]
52 ///<value>default value</value>
53 [MarshalAs(UnmanagedType.LPStr)]
55 ///<value>type of field</value>
56 public int FieldTypes;
57 ///<value>width of column</value>
59 ///<value>max width of selected set</value>
60 public uint MaxLength;
61 ///<value>div flags</value>
63 ///<value>number of decimals in field</value>