| 1484 | // |
| 1485 | |
| 1486 | static void create_domain_constraint(gpre_req* request, const cnstrt* constraint) |
| 1487 | { |
| 1488 | for (; constraint; constraint = constraint->cnstrt_next) |
| 1489 | { |
| 1490 | if (constraint->cnstrt_flags & CNSTRT_delete) |
| 1491 | continue; |
| 1492 | |
| 1493 | // this will be used later |
| 1494 | // put_cstring (request, isc_dyn_rel_constraint, constraint->cnstrt_name->str_string); |
| 1495 | |
| 1496 | if (constraint->cnstrt_type == CNSTRT_CHECK) |
| 1497 | { |
| 1498 | TEXT* source = (TEXT*) MSC_alloc(constraint->cnstrt_text->txt_length + 1); |
| 1499 | CPR_get_text(source, constraint->cnstrt_text); |
| 1500 | if (source != NULL) |
| 1501 | put_cstring(request, isc_dyn_fld_validation_source, source); |
| 1502 | put_blr(request, isc_dyn_fld_validation_blr, constraint->cnstrt_boolean, CME_expr); |
| 1503 | } |
| 1504 | } |
| 1505 | } |
| 1506 | |
| 1507 | |
| 1508 | //____________________________________________________________ |
no test coverage detected