Skip to content

Instantly share code, notes, and snippets.

View jeltz's full-sized avatar

Andreas Karlsson jeltz

  • Stockholm, Sweden
View GitHub Profile
postgres=# CREATE TABLE t (a int);
CREATE TABLE
postgres=# SELECT * FROM pg_attrdef;
oid | adrelid | adnum | adbin
-----+---------+-------+-------
(0 rows)
postgres=# INSERT INTO t VALUES (1);
INSERT 0 1
postgres=# ALTER TABLE t ADD b int DEFAULT 2;
commit 11eef04f83d6995c9e64654f99f0154f6f422348
Author: Andreas Karlsson <andreas@proxel.se>
Date: Sun Oct 29 01:35:34 2017 +0200
PoC
diff --git a/src/backend/utils/adt/ri_triggers.c b/src/backend/utils/adt/ri_triggers.c
index ed11c7a265..166d6c6970 100644
--- a/src/backend/utils/adt/ri_triggers.c
+++ b/src/backend/utils/adt/ri_triggers.c
<div class="row">
<!-- SIDEBAR, CASINO GAMES TREE -->
<div id="casino-games-sidebar">
<div class="casino-sidebar-box game-menu">
<<<<<<< HEAD
<% box(:theme => 'featured-2', :heading => 'Browse our games', :no_box => whitebet_brand? ) do %>
<ul>
<%
@game_categories.each_with_index do |category, i|
first = i == 0 ? 'first' : ''