On Nov 8, 5:38 pm, Dirkjan Bussink <[email protected]> wrote:
> Hello Xavier,
>
> You can't, since there is no underlying pg driver. Datamapper uses the 
> DataObjects drivers, which are directly writting on top of the C api of most 
> of the database drivers. Is this a setting that is controllable through a 
> query? Otherwise you probably need support for this in the DO driver 
> (do_postgres).

ah, so DM doesn't use the pg gem at all? No wonder I was confused.

Looks like I would need to patch this file somewhere:
https://github.com/datamapper/do/blob/master/do_postgres/ext/do_postgres/do_postgres.c

yes?

*rolls up sleeves*

Thanks,
Xavier

>
> --
> Regards,
>
> Dirkjan Bussink
>
> On 8 Nov 2010, at 05:34, Xavier (DBIYF) wrote:
>
>
>
>
>
>
>
> > I want to call this function in the underlying pg driver:
>
> > pg-0.9.0/ext/pg.c
> > 2359:pgconn_set_notice_receiver(VALUE self)
>
> > How do I get down to it from a top level DM repository object? I tried
> > to trace down in through dm-postgres-adapter but got lost :S
>
> > (evil instance_eval { @instance_var } tricks are fine for now)
>
> > My real problem is I'm getting a heap of noise from the database_cleaner 
> > gem with PG9:
> > NOTICE:  truncate cascades to table "X"
>
> > I want to set my own notice receiver function to filter them out (the 
> > default one just prints to stderr)
>
> > Cheers,
> > Xavier
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "DataMapper" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/datamapper?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to