My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 91 attachment: pyodbc_params.cpp.diff (563 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
636a637,639
> // number of characters in the string representation that AREN'T digits - e.g. decimal point or negative sign
> int formatChars = 0;
>
644d646
< cbColDef = len;
650a653
> formatChars += 1;
655a659,666
> int is_signed = 0;
> Object param_signed = PyObject_GetAttrString(param, "_sign");
> if (!PyArg_Parse(param_signed, "i", &is_signed))
> return NULL;
> if (is_signed == 1) {
> formatChars +=1 ;
> }
> cbColDef = len - formatChars;
Powered by Google Project Hosting