It will take me a while to reproduce the error, but it involved on one
hand refusing to accept the "mysql" import and on the other claiming
that the "mysql" in "mysql.NullTime" wasn't defined (from memory).

I have borrowed code I found elsewhere, but it's not as comprehensive
as I may wish and seems a ridiculous work-around.

Lucio.

On 10/13/16, Pietro Gagliardi <andl...@lostsig.net> wrote:
> What error do you get? Can you paste it here?
>
> In the meantime, does pq's license allow you to just copy its NullTime into
> your project?
>
>> On Oct 13, 2016, at 8:34 AM, Lucio <lucio.d...@gmail.com> wrote:
>>
>> I used
>>
>>   import "github.com/lib/pq"
>>
>>    ...
>>
>>   var t pq.NullTime
>>
>>   ...
>>
>> successfully in the past, but using
>>
>>   import "github.com/go-sql-driver/mysql"
>>
>> in the same context seems to fail with an error I don't quite understand.
>>
>> How is one to access the NullTime in mysql, if the import cannot be
>> visible? Is there a trick I have overlooked?
>>
>> I have checked a previous thread along these lines, but it does not
>> disclose how it's done, even though the tools for it seem to be in place
>> (mysql.NullTime does exist).
>>
>> Help, anyone?
>>
>> Lucio.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "golang-nuts" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to golang-nuts+unsubscr...@googlegroups.com
>> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout
>> <https://groups.google.com/d/optout>.
>
>


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824
FAX: +27 58 653 1435

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to