##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:48-0400 ##+ # # dblimits.icn, ODBC internal limit information # # tectonics: ~/.odbc.ini setup required for [unicon] # assuming the [unicon] ODBC setup, SQLite3 # link ximage procedure main() # mode 'o' open, ODBC SQL, default table and connection at defaults db := open("unicon", "o", "", "") | stop("no ODBC for \"unicon\"") # Information below was created as part of examples/odbc.icn # sql(db, "create table contacts (id integer primary key, name, phone)") # display ODBC limit info write("\nODBC limit information:") write(ximage(dblimits(db))) # and a direct field access write("Max SQL statement length: ", dblimits(db).maxstmtlen) close(db) end