Commit 00101351 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Allow relational comparisons on REAL type.

Fixes	#1002
parent 277dee34
varnishtest "Real relational comparisons"
varnish v1 -vcl {
import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so" ;
backend foo { .host = "${bad_ip}"; }
sub vcl_recv {
if (std.random(0,5) < 1.0) {
return (pipe);
}
}
}
......@@ -886,6 +886,7 @@ static const struct cmps {
NUM_REL(INT),
NUM_REL(DURATION),
NUM_REL(BYTES),
NUM_REL(REAL),
{STRING, T_EQ, "!VRT_strcmp(\v1, \v2)" },
{STRING, T_NEQ, "VRT_strcmp(\v1, \v2)" },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment