Skip to content

Commit

Permalink
Merge tag 'v1.4.7' of https://github.com/JerrySievert/plv8 into HEAD
Browse files Browse the repository at this point in the history
release 1.4.7
  • Loading branch information
JerrySievert committed Apr 16, 2016
2 parents cc29067 + c7c3acd commit 07d09c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions META.json
Expand Up @@ -2,7 +2,7 @@
"name": "plv8",
"abstract": "A procedural language in JavaScript powered by V8",
"description": "plv8 is a trusted procedural language that is safe to use, fast to run and easy to develop.",
"version": "1.4.6",
"version": "1.4.7",
"maintainer": [
"Jerry Sievert <code@legitimatesounding.com>",
"Hitoshi Harada <umi.tanuki@gmail.com>"
Expand All @@ -24,21 +24,21 @@
},
"provides": {
"plv8": {
"file": "plv8--1.4.6.sql",
"file": "plv8--1.4.7.sql",
"docfile": "doc/plv8.md",
"version": "1.4.6",
"version": "1.4.7",
"abstract": "A procedural language in JavaScript"
},
"plcoffee": {
"file": "plcoffee--1.4.6.sql",
"file": "plcoffee--1.4.7.sql",
"docfile": "doc/plv8.md",
"version": "1.4.6",
"version": "1.4.7",
"abstract": "A procedural language in CoffeeScript"
},
"plls": {
"file": "plls--1.4.6.sql",
"file": "plls--1.4.7.sql",
"docfile": "doc/plv8.md",
"version": "1.4.6",
"version": "1.4.7",
"abstract": "A procedural language in LiveScript"
}
},
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -12,7 +12,7 @@
# 'make static' will download v8 and build, then statically link to it.
#
#-----------------------------------------------------------------------------#
PLV8_VERSION = 1.4.6
PLV8_VERSION = 1.4.7

PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
Expand Down
6 changes: 6 additions & 0 deletions plv8_func.cc
Expand Up @@ -122,6 +122,8 @@ class SubTranBlock
Persistent<ObjectTemplate> PlanTemplate;
Persistent<ObjectTemplate> CursorTemplate;
Persistent<ObjectTemplate> WindowObjectTemplate;
ResourceOwner oldowner;


static Handle<v8::Value>
SPIResultToValue(int status)
Expand Down Expand Up @@ -162,6 +164,8 @@ SubTranBlock::SubTranBlock()
void
SubTranBlock::enter()
{
oldowner = CurrentResourceOwner;

if (!IsTransactionOrTransactionBlock())
throw js_error("out of transaction");

Expand All @@ -172,6 +176,8 @@ SubTranBlock::enter()
void
SubTranBlock::exit(bool success)
{
CurrentResourceOwner = oldowner;

if (success)
ReleaseCurrentSubTransaction();
else
Expand Down

0 comments on commit 07d09c0

Please sign in to comment.