Created
October 29, 2010 20:46
-
-
Save adam/654373 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my $sql = "SELECT slug FROM $content_type WHERE slug = '$requested_slug'"; | |
# if we have a uuid, we are peforming an UPDATE, so exclude the existing row from the search | |
if (defined($uuid)) { | |
elog(NOTICE, "Performing an update, so adding WHERE uuid <> '$uuid'"); | |
$sql .= " WHERE uuid <> '$uuid'"; | |
} | |
elog(NOTICE, $sql); | |
my $results = spi_exec_query($sql); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment