Dear Mr. Rao,
So according to your post, why don´t you always use at ADOCreateColSQL function same numeric field 0/1 for logical fields?.
Thank you.
CASE cType = "L"
//cQuery += aFld[ i, DBS_NAME ] + " INT, " //int
IF cMot == "JET" .or. cMot == "MSACCESS"
cQuery += aFld[ i, DBS_NAME ] + " YESNO, " //int
ELSEIF cMot == "MSSQL"
cQuery += aFld[ i, DBS_NAME ] + " INT, " //int
ELSEIF cMot == "MYSQL" .or. cMot == "SQLITE"
cQuery += aFld[ i, DBS_NAME ] + " BIT, " //int
ENDIF
elvira wrote:This is Mr. Enríco´s approach:
- Code: Select all Expand view
CASE cType = "L"
//cQuery += aFld[ i, DBS_NAME ] + " INT, " //int
IF cMot == "JET" .or. cMot == "MSACCESS"
cQuery += aFld[ i, DBS_NAME ] + " YESNO, " //int
ELSEIF cMot == "MSSQL"
cQuery += aFld[ i, DBS_NAME ] + " INT, " //int
ELSEIF cMot == "MYSQL" .or. cMot == "SQLITE"
cQuery += aFld[ i, DBS_NAME ] + " BIT, " //int
ENDIF
CASE cType = "L"
cQuery += aFld[ i, DBS_NAME ] + " INT, "
No, my approach is just
Code:
CASE cType = "L"
cQuery += aFld[ i, DBS_NAME ] + " INT, "
It works fine with Jet, MSSQL and MySQL.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 89 guests