Open Rogni opened 4 years ago
I think it could be fixed by changing that line to:
static if(is(typeof(o.id) == int)) {
o.id = insertId.coerce!int;
} else if(is(typeof(o.id) == uint)) {
o.id = insertId.coerce!uint;
} else if(is(typeof(o.id) == long)) {
o.id = insertId.coerce!long;
} else {
o.id = insertId.coerce!ulong;
}
I did some testing locally but want to add some more tests before I push anything. Would you mind trying that out locally and seeing if it solves the problem you've been facing.
this should be sorted in the pods code but I suspect there may be some postgres specific changes that are needed for your scenario. If you have time please checkout the latest changes in master and see if it fixes the problem.
receive exception
before sql script:
code:
maybe need check variant id in https://github.com/buggins/ddbc/blob/cb72071bbe0ce089204e40d88ef71b6f605852c3/source/ddbc/pods.d#L1071