예제 #1
0
 public DrdaImmediateStatement(
     DrdaConnection connection,
     String sqlStatement)
 {
     _sqlStatement = sqlStatement;
     _connection   = connection;
 }
예제 #2
0
 public QueryContext(
     DrdaConnection connection,
     Boolean hasParameters)
 {
     HasParameters       = hasParameters;
     PackageSerialNumber = connection.GetNextPackageSerialNumber();
 }
예제 #3
0
        public DrdaPreparedStatement(
            DrdaConnection connection,
            String sqlStatement)
        {
            _sqlStatement = sqlStatement;
            _connection   = connection;

            _context = new QueryContext(
                _connection, _sqlStatement.Contains("?"));

            _isPackagePreparedSuccessfully = PreparePackage
                                                 (_connection.GetStream(),
                                                 _connection.GetNextRequestCorrelationId());
        }