X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/eb0f9ff63d5ad5d91ea941420e094dd2980df094..HEAD:/db/functions/xid_to_int4.c?ds=sidebyside diff --git a/db/functions/xid_to_int4.c b/db/functions/xid_to_int4.c deleted file mode 100644 index 6863dfaca..000000000 --- a/db/functions/xid_to_int4.c +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef USE_MYSQL -#ifndef USE_PGSQL -#error One of USE_MYSQL or USE_PGSQL must be defined -#endif -#endif - -#ifdef USE_PGSQL -#ifdef USE_MYSQL -#error ONLY one of USE_MYSQL and USE_PGSQL should be defined -#endif - -#include -#include - -int xid_to_int4(TransactionId xid) -{ - return xid; -} - -/* - * To bind this into PGSQL, try something like: - * - * CREATE FUNCTION xid_to_int4(xid) RETURNS int4 - * AS '/path/to/rails-port/db/functions/libpgosm', 'xid_to_int4' - * LANGUAGE C IMMUTABLE STRICT; - * - * (without all the *s) - */ - -#endif