예제 #1
0
 protected override ReservedForStatement CreateReservationObject(StatementBuilder stmt)
 {
     return(new PgReservedForStatement(stmt.IsSimple(), stmt.HasBatchParameters() ? "cbam_statement" : null));
 }
예제 #2
0
 public static Boolean IsSimple(this StatementBuilder stmt)
 {
     return(!stmt.HasBatchParameters() && stmt.SQLParameterCount == 0);
 }