Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1f1963d7
...
1f1963d748e8c25889fef7acdd027c801291d519
authored
2007-02-23 20:26:58 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Update
1 parent
eb38b439
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
sql/odbc.c
sql/odbc.c
View file @
1f1963d
...
...
@@ -261,7 +261,9 @@ static int
get_field_number
(
mu_sql_connection_t
conn
,
const
char
*
fname
,
size_t
*
fno
)
{
size_t
count
;
struct
mu_odbc_data
*
dp
=
conn
->
data
;
int
i
;
if
(
!
dp
->
fnames
)
{
int
rc
;
...
...
@@ -274,7 +276,7 @@ get_field_number (mu_sql_connection_t conn, const char *fname, size_t *fno)
return
ENOMEM
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
char
*
name
char
*
name
;
SQLRETURN
ret
;
SQLSMALLINT
namelen
;
...
...
@@ -318,10 +320,10 @@ get_field_number (mu_sql_connection_t conn, const char *fname, size_t *fno)
dp
->
fnames
[
i
]
=
NULL
;
}
else
count
=
d
f
->
fcount
;
count
=
d
p
->
fcount
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
strcmp
(
fname
,
d
f
->
fnames
)
==
0
)
if
(
strcmp
(
fname
,
d
p
->
fnames
[
i
]
)
==
0
)
{
*
fno
=
i
;
return
0
;
...
...
Please
register
or
sign in
to post a comment