You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2016/11/28 16:49:16 UTC
[1/2] incubator-trafficcontrol git commit: not_like doesn't work with
bigint or integers in general probably
Repository: incubator-trafficcontrol
Updated Branches:
refs/heads/psql-rebase 4c47364c7 -> 3162178ac
not_like doesn't work with bigint or integers in general probably
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/b0a50a68
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/b0a50a68
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/b0a50a68
Branch: refs/heads/psql-rebase
Commit: b0a50a686675f18277c23f7b79648a61f555fe86
Parents: 4c47364
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Tue Nov 22 13:14:48 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 09:37:14 2016 -0700
----------------------------------------------------------------------
traffic_ops/app/lib/UI/Region.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b0a50a68/traffic_ops/app/lib/UI/Region.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/UI/Region.pm b/traffic_ops/app/lib/UI/Region.pm
index fe60b02..577dade 100644
--- a/traffic_ops/app/lib/UI/Region.pm
+++ b/traffic_ops/app/lib/UI/Region.pm
@@ -92,7 +92,7 @@ sub is_valid {
my $region_rs = $self->db->resultset('Region');
my $orig_name = $region_rs->search( { id => $id } )->get_column('name')->single();
if ( $name ne $orig_name ) {
- my $regions = $region_rs->search( { id => { -not_like => $id } } )->get_column('name');
+ my $regions = $region_rs->search( { id => { '!=' => $id } } )->get_column('name');
while ( my $db_name = $regions->next ) {
if ( $db_name eq $name ) {
$self->field('region.name')->is_equal( "", "Region with name \"$name\" already exists." );
[2/2] incubator-trafficcontrol git commit: This closes #103.
Posted by da...@apache.org.
This closes #103.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3162178a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3162178a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3162178a
Branch: refs/heads/psql-rebase
Commit: 3162178ac8e51762328e375c1f4dd6b37e5392fc
Parents: b0a50a6
Author: Dan Kirkwood <da...@gmail.com>
Authored: Mon Nov 28 09:48:21 2016 -0700
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Mon Nov 28 09:48:21 2016 -0700
----------------------------------------------------------------------
----------------------------------------------------------------------