<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi everyone, I'm using PowerDNS on a MySql backend.<br>
All worked fine until I decided to create a slightly modified
version of the <a
href="http://doc.powerdns.com/generic-mypgsql-backends.html#idp8855424">mysql
database schema</a><br>
In particular, I changed the 'domain_id' field from the 'records'
table to be of type <b>varchar</b>, since I want to use the domain
name itself as the foreign key and not some autoincremental numeric
value. Postfix, for instance, uses this approach.<br>
<br>
The problem is that PowerDns tries to cast the 'domain_id' value to
integer and, failing in doing so, the resulting value is always a 0.
That's my interpretation, since I've seen a '0' showing up in
subsequent mysql queries.<br>
<br>
Any hints on how I might solve this problem without actually
reintroducing the numeric field?<br>
Thank you in advance!<br>
<a
href="http://doc.powerdns.com/generic-mypgsql-backends.html#idp8855424"></a>
</body>
</html>