public NpgsqlCommand(String cmdText, NpgsqlConnection connection, NpgsqlTransaction transaction)
{
NpgsqlEventLog.LogMethodEnter(LogLevel.Debug, CLASSNAME, CLASSNAME);
planName = String.Empty;
commandText = cmdText;
this.connection = connection;
if (this.connection != null)
{
this.m_Connector = connection.Connector;
if (m_Connector != null && m_Connector.AlwaysPrepare)
{
CommandTimeout = m_Connector.DefaultCommandTimeout;
prepared = PrepareStatus.NeedsPrepare;
}
}
commandType = CommandType.Text;
this.Transaction = transaction;
SetCommandTimeout();
}