mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
TYPE statement attribute should be integer (RT#46873)
This commit is contained in:
parent
47c115cae2
commit
7c811dd4f4
1 changed files with 1 additions and 6 deletions
7
dbdimp.c
7
dbdimp.c
|
@ -1358,15 +1358,10 @@ sqlite_st_FETCH_attrib(SV *sth, imp_sth_t *imp_sth, SV *keysv)
|
||||||
av_extend(av, i);
|
av_extend(av, i);
|
||||||
retsv = sv_2mortal(newRV_noinc((SV*)av));
|
retsv = sv_2mortal(newRV_noinc((SV*)av));
|
||||||
for (n = 0; n < i; n++) {
|
for (n = 0; n < i; n++) {
|
||||||
const char *fieldtype = sqlite3_column_decltype(imp_sth->stmt, n);
|
|
||||||
int type = sqlite3_column_type(imp_sth->stmt, n);
|
int type = sqlite3_column_type(imp_sth->stmt, n);
|
||||||
/* warn("got type: %d = %s\n", type, fieldtype); */
|
/* warn("got type: %d = %s\n", type, fieldtype); */
|
||||||
type = sqlite_type_to_odbc_type(type);
|
type = sqlite_type_to_odbc_type(type);
|
||||||
/* av_store(av, n, newSViv(type)); */
|
av_store(av, n, newSViv(type));
|
||||||
if (fieldtype)
|
|
||||||
av_store(av, n, newSVpv(fieldtype, 0));
|
|
||||||
else
|
|
||||||
av_store(av, n, newSVpv("VARCHAR", 0));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strEQ(key, "NULLABLE")) {
|
else if (strEQ(key, "NULLABLE")) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue