![]() | |
#11
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#12
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#13
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#14
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#15
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#16
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
#17
| |||
| |||
|
|
Hello group, I'm playing around with triggers. What I want to achieve is a table of subnets. All subnets should be disjoint, network is of type cidr. E.g. The following should not be possible: INSERT INTO subnets (network) VALUES ('192.168.1.0/24'); INSERT INTO subnets (network) VALUES ('192.168.0.0/16'); As the latter includes the former completely. It shall not be possible in reverse order, either. Therefore, I started up with a simple type of check (currently only checks if network is a certain parameter to try around, later this will be replaced by the "real" check): |
![]() |
| Thread Tools | |
| Display Modes | |
| |