How do I compare fields in a database query?

Given the query fragment: $query = $connection->select(‘mytable’, ‘t’); $query->addField(‘t’, ‘myfield1’, ‘myfield1’); $query->addField(‘t’, ‘myfield2’, ‘myfield2’); I need to add a condition like this: $query->condition(‘t.myfield1’, ‘t.myfield2’, ‘=’); But it doesn’t seem to work. For comparison, I can use: $query->condition(‘t.myfield1’, ‘banana’, ‘=’); … and that works. But it seems comparing two fields to see if they match does…

Details

Can ext_pillar be configured depending on pillarenv or saltenv?

I’m looking for a way to select the external pillar depending on saltenv or pillarenv variable. From saltstack documentation, ext_pillar does not support the same syntax as pillar_roots (https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-roots and https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-roots) Is there a way to do this ?

Details

Ethernet and Wifi Bridge

I am trying to make the fallowing configuration. Eth0 is WAN DHCP ETH1 is LAN Wlan0 is WifiAP Currently I have the fallowing configurations: INTERFACES: auto eth0 iface eth0 inet dhcp allow-hotplug wlan0 allow-hotplug wlan1 # post-up iptables-restore < /etc/iptables.up.rules #LAN Port auto iface eth1 iface eth1 inet static address 192.168.11.1 netmask 255.255.255.0 broadcast 192.168.11.255…

Details

How do I separate Apache server log entries for a domain that is different than my server’s?

I’m using the following version of Apache … httpd -v Server version: Apache/2.4.6 (CentOS) Server built: Apr 24 2019 13:45:48 I have a lot of entries in my /var/log/httpd/access_log file that are for domains that are not my domain … 79.143.191.42 – – [17/Dec/2019:10:36:30 -0500] “GET http://www.guenstiger.de/Produkt/Prada/Infusion_d_Homme_Deodorant_100_ml.html HTTP/1.1” 400 64146 “-” “Mozilla/5.0 (Macintosh; Intel Mac…

Details