|
From: Sean C. <se...@ch...> - 2002-09-26 16:53:34
|
> Modified Files:
> Pg.rb
> Log Message:
> rewritten transaction handling (uses now Postgres' "SET AUTOCOMMIT ON|OFF")
>
>
> Index: Pg.rb
> ===================================================================
> RCS file: /cvsroot/ruby-dbi/src/lib/dbd_pg/Pg.rb,v
> retrieving revision 1.24
> retrieving revision 1.25
> diff -u -r1.24 -r1.25
> --- Pg.rb 13 Sep 2002 09:10:31 -0000 1.24
> +++ Pg.rb 26 Sep 2002 13:28:12 -0000 1.25
> @@ -290,21 +282,13 @@
> @coerce.coerce(converter, obj)
> end
>
> - def in_transaction?
> - @in_transaction
> - end
> -
> - def start_transaction
> - send_sql("BEGIN WORK", 2)
> - @in_transaction = true
> - end
> -
> def send_sql(sql, level=1)
> - puts "SQL TRACE: |#{sql}|" if @debug_level >= level
> + #puts "SQL TRACE: |#{sql}|" if @debug_level >= level
> @connection.exec(sql)
> end
Did you mean to comment this out? -sc
--
Sean Chittenden
|