it works fine for meWhat about the TASK label ? the TASK in the QUERYASYNC doesn't work..
db.QueryASync("select Description as My_Name from Categories;","test")
db.QueryASync("select Description as My_Name from Categories;","test2")
The task is given back in the metadata...MySQL_Status(true,false,0)
MySQL_QueryResult(Columns 1, Records 11,381ms,test2
(MyMap) {My_Name=Soft drinks, coffees, teas, beers, and ales}
(MyMap) {My_Name=Sweet and savory sauces, relishes, spreads, and seasonings}
(MyMap) {My_Name=Desserts, candies, and sweet breads}
(MyMap) {My_Name=Cheeses}
(MyMap) {My_Name=Breads, crackers, pasta, and cereal}
(MyMap) {My_Name=Prepared meats}
(MyMap) {My_Name=Dried fruit and bean curd}
(MyMap) {My_Name=Seaweed and fish}
MySQL_QueryResult(Columns 1, Records 11,382ms,test
(MyMap) {My_Name=Soft drinks, coffees, teas, beers, and ales}
(MyMap) {My_Name=Sweet and savory sauces, relishes, spreads, and seasonings}
(MyMap) {My_Name=Desserts, candies, and sweet breads}
(MyMap) {My_Name=Cheeses}
(MyMap) {My_Name=Breads, crackers, pasta, and cereal}
(MyMap) {My_Name=Prepared meats}
(MyMap) {My_Name=Dried fruit and bean curd}
(MyMap) {My_Name=Seaweed and fish}
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Activity_Resume()
it works fine for me
B4X:db.QueryASync("select Description as My_Name from Categories;","test") db.QueryASync("select Description as My_Name from Categories;","test2")
The task is given back in the metadata...
Hi,
I have this code
B4X:If data.Get("COLLATION_NAME")<>Null Then Cola=data.Get("COLLATION_NAME") Else Cola="" End If
And trow this error
B4X:** Activity (main) Pause, UserClosed = false ** ** Service (starter) Create ** ** Service (starter) Start ** ** Activity (main) Create, isFirst = true ** ** Activity (main) Resume ** MySQL Database not connected! Sub NOT FOUND: 'vertablas_status Connected to Database ** Activity (main) Pause, UserClosed = false ** ** Activity (listatablas) Create, isFirst = true ** ** Activity (listatablas) Resume ** ** Activity (listatablas) Pause, UserClosed = false ** ** Activity (estructuras) Create, isFirst = true ** ** Activity (estructuras) Resume ** An error occurred: (Line: 72) If data.Get("COLUMN_DEFAULT")<>Null Then java.lang.NumberFormatException: For input string: "COLUMN_DEFAULT" ** Activity (main) Resume ** ** Activity (main) Pause, UserClosed = false ** ** Activity (main) Resume **
yes. It is like the sub JobDone when using okhttputils.I need to put all code in 1 Sub for all queries ?
what is the result of the folloging code???Can you see this previous problem ?
log($"->${data.Get("COLLATION_NAME")}<-"$)
what is the result of the folloging code???
B4X:log($"->${data.Get("COLLATION_NAME")}<-"$)
The used mysql connector does not have such a Type...Or let me say...LT is a LONGTEXT maybe your Control reject a LONGTEXT field
The used mysql connector does not have such a Type...Or let me say...
There is no such Type in java.sql.Types
The used mysql connector does not have such a Type...Or let me say...
There is no such Type in java.sql.Types
so the following should work?ResultSetMetaData.getColumnType should return a MySQL LONGTEXT type as java.sql.Types.LONGNVARCHAR
} else if(rsmd.getColumnType(i)==java.sql.Types.LONGNVARCHAR){
mm.Put(columnname, rs.getString(i));
so the following should work?
rsmd = resultset metadataB4X:} else if(rsmd.getColumnType(i)==java.sql.Types.LONGNVARCHAR){ mm.Put(columnname, rs.getString(i));
mm = B4A Map to return
MySQL said:All TEXT types return Types.LONGVARCHAR with different getPrecision() values (65535, 255, 16777215, and 2147483647 respectively) with getColumnType() returning -1. This behavior is intentional even though TINYTEXT does not fall, regarding to its size, within the LONGVARCHAR category. This is to avoid different handling inside the same base type. And getColumnType()returns -1 because the internal server handling is of type TEXT, which is similar to BLOB.
Also note that getColumnTypeName() will return VARCHAR even though getColumnType() returns Types.LONGVARCHAR, because VARCHAR is the designated column database-specific name for this type.
You can try v1.0.9 (download in my dropbox at same place)I'm waiting for your new (MySQL Longtext type) version
You can try v1.0.9 (download in my dropbox at same place)
It adds also a new event to show errors (untested) for a query
It adds also a new event to show errors (untested) for a query
Use the IDE to create the sub for you!?Can you give me the Sintax to this new Sub ?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?