Exemple #1
0
 public static extern ODBCResult SQLBindCol(
     ODBCHStatement StatementHandle,
     short ColumnNumber,
     ODBCDataType TargetType,
     StringBuilder TargetValue,
     int BufferLength,
     out int StrLen_or_ind);
Exemple #2
0
 public IndexStatementDefinition()
 {
     Indexes = new short[] { 4, 6, 8, 9, 10 };
     Types   = new ODBCDataType[] { ODBCDataType.Integer, ODBCDataType.Char, ODBCDataType.Integer, ODBCDataType.Char, ODBCDataType.Char };
     Lengths = new int[] { 4, 80, 4, 80, 4 };
     Names   = new string[] { "isUnique", "indexName", "orderNumber", "ColumnName", "sortOrder" };
 }
Exemple #3
0
 public int ColumnIndex;            //индекс колонки в сокращенном локальном наборе
 public ODBCData(short columnNumber, ODBCDataType columnType, int columnDataLength)
 {
     ColumnNumber     = columnNumber;
     ColumnType       = columnType;
     ColumnDataLength = columnDataLength;
     ColumnData       = Marshal.AllocHGlobal(ColumnDataLength);
     ColumnStringData = new StringBuilder(ColumnDataLength);
     InternalData     = new BufferData();
 }
Exemple #4
0
        internal static bool SQLBindColumn(ODBCHStatement statementHandle, short ColumnNumber, ODBCDataType TargetType, StringBuilder TargetValue, int BufferLength, out int StrLen_or_ind)
        {
            var result = ODBCNativeMethods.SQLBindCol(statementHandle, ColumnNumber, TargetType, TargetValue, BufferLength, out StrLen_or_ind);

            if ((result != ODBCResult.Success) & (result != ODBCResult.SuccessWithInfo))
            {
                throw GetException(statementHandle, "Error binding columns");
            }
            return(true);
        }
Exemple #5
0
 public ForeignKeysStatementDefinition()
 {
     Indexes = new short[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
     Types   = new ODBCDataType[] { ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Integer, ODBCDataType.Integer, ODBCDataType.Integer, ODBCDataType.Char, ODBCDataType.Char };
     Lengths = new int[] { 50, 50, 50, 50, 50, 50, 50, 50, 4, 4, 4, 50, 50 };
 }
Exemple #6
0
 public PrimaryKeyStatementDefinition()
 {
     Indexes = new short[] { 4, 5 };
     Types   = new ODBCDataType[] { ODBCDataType.Char, ODBCDataType.Integer };
     Lengths = new int[] { 80, 4 };
 }
Exemple #7
0
 public TablesStatementDefinition()
 {
     Indexes = new short[] { 2, 3, 4 };
     Types   = new ODBCDataType[] { ODBCDataType.Char, ODBCDataType.Char, ODBCDataType.Char };
     Lengths = new int[] { 80, 80, 80 };
 }
Exemple #8
0
 public ColumnsStatementDefinition()
 {
     Indexes = new short[] { 4, 5, 7, 9, 18, 11 };
     Types   = new ODBCDataType[] { ODBCDataType.Char, ODBCDataType.Integer, ODBCDataType.Integer, ODBCDataType.Integer, ODBCDataType.Char, ODBCDataType.Integer };
     Lengths = new int[] { 150, 4, 4, 4, 150, 4 };
 }