Answer the question
In order to leave comments, you need to log in
Why does a null query always return a database type object?
I can’t understand why the cursor always needs to be moved when fetching data from the database and getting a value with index 1, not 0. It’s just that if I do without it, I get a link to the connection instance object (or whatever it’s called correctly - correct pliz) type: ddbc.driver.bla-bla-bla
auto lastparsetime = stmt.executeQuery("SELECT LastParseTime FROM stat where URL='" ~ url ~ "';");
while(lastparsetime.next())
{
dt = (DateTime.fromSimpleString(lastparsetime.getString(1)));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question