]> git.openstreetmap.org Git - rails.git/blob - db/functions/xid_to_int4.c
Fix two issues with the remember_me_openid button
[rails.git] / db / functions / xid_to_int4.c
1 #include <postgres.h>
2 #include <fmgr.h>
3
4 int xid_to_int4(TransactionId xid)
5 {
6    return xid;
7 }
8
9 /*
10  * To bind this into PGSQL, try something like:
11  *
12  * CREATE FUNCTION xid_to_int4(xid) RETURNS int4
13  *  AS '/path/to/rails-port/db/functions/libpgosm', 'xid_to_int4'
14  *  LANGUAGE C IMMUTABLE STRICT;
15  *
16  * (without all the *s)
17  */