pyodbc icon indicating copy to clipboard operation
pyodbc copied to clipboard

Add interval support

Open tekknolagi opened this issue 10 years ago • 12 comments

I plan to submit a patch to fix support for intervals, particularly with a Vertica backend. Is there anything in particular I should read before submitting my patch? Perhaps regarding code style, licenses, etc?

I made a Google Groups post here but I am not sure if that is monitored much.

tekknolagi avatar Jun 29 '15 21:06 tekknolagi

Sorry, I have been so busy on so many projects that I haven't been monitoring the group much. As for style, just try to match the rest of the code. Thanks.

mkleehammer avatar Jun 29 '15 21:06 mkleehammer

No problem. Since I do not see many helper functions in src/getdata.cpp, do you have a particular style in mind?

tekknolagi avatar Jun 29 '15 21:06 tekknolagi

I'm not really sure what your looking for, so feel free to start the pull request. I alway recommend rebasing to a single commit anyway, so if you feel changes are needed afterwards it will end up fine.

I was assuming we were talking about the generic ODBC interval data type and you creating a Getinterval function or something. Did I get that right?

mkleehammer avatar Jun 29 '15 21:06 mkleehammer

That is correct, and it will be a single-commit patch.

tekknolagi avatar Jun 29 '15 21:06 tekknolagi

Somewhat related: what do you want get_version() to report when not on a branch? Right now, since git branch shows * (no branch), it reports something like 3.0.13b1+(no, which is a) poorly formatted and b) messing up the TOSTRING macro. I propose a change that instead uses the commit hash when not on a branch.

tekknolagi avatar Jun 29 '15 22:06 tekknolagi

I thought I fixed that once by replacing it with no-branch, but a hash would be great. Thanks.

My intention is to ways be on a branch when developing so I ignored the few times I was using hit bisect, etc

mkleehammer avatar Jun 29 '15 22:06 mkleehammer

Noted.

tekknolagi avatar Jun 29 '15 23:06 tekknolagi

https://github.com/uber/pyodbc

tekknolagi avatar Jul 15 '15 14:07 tekknolagi

Yay! https://github.com/mkleehammer/pyodbc/pull/66 https://github.com/mkleehammer/pyodbc/pull/67

tekknolagi avatar Jul 15 '15 16:07 tekknolagi

@mkleehammer Thoughts?

tekknolagi avatar Jul 20 '15 17:07 tekknolagi

Here's another attempt: https://github.com/mkleehammer/pyodbc/pull/80

mweaverh avatar Sep 25 '15 20:09 mweaverh

Interesting.

2015-09-25 16:48 GMT-04:00 Matthew Weaver [email protected]:

Here's another attempt: #80 https://github.com/mkleehammer/pyodbc/pull/80

— Reply to this email directly or view it on GitHub https://github.com/mkleehammer/pyodbc/issues/60#issuecomment-143349621.

tekknolagi avatar Sep 25 '15 20:09 tekknolagi