[chargeable] MSMySQL - Yet another MySQL-Library (but a FAST one :-))

DonManfred

Expert
Licensed User
Longtime User
What about the TASK label ? the TASK in the QUERYASYNC doesn't work..
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...
 

vbmundo

Well-Known Member
Licensed User

???

But the SUB is allways the same ?

I need to put all code in 1 Sub for all queries ?
 

vbmundo

Well-Known Member
Licensed User

Hi Donmanfred

Can you see this previous problem ?

I have this error when I tried to check if this Field return Null

Regards
 

vbmundo

Well-Known Member
Licensed User
Hi DonMandred, ok.. not problem with that.

But, I'm still hold with
java.lang.NumberFormatException

You Know, COLUMN_DEFAULT return Null sometimes and you have an Issue when you try to determine if the field is null.

I can't advance

Regards
 

vbmundo

Well-Known Member
Licensed User
what is the result of the folloging code???

B4X:
log($"->${data.Get("COLLATION_NAME")}<-"$)

nothing

The App abort when you try to show data.Get("COLUMN_DEFAULT")

COLUMN_DEFAULT is a LONGTEXT maybe your Control reject a LONGTEXT field.

See the Attached file

Regards
 

Attachments

  • LongText.jpg
    27.6 KB · Views: 173

vbmundo

Well-Known Member
Licensed User

DonManfred

Expert
Licensed User
Longtime User
ResultSetMetaData.getColumnType should return a MySQL LONGTEXT type as java.sql.Types.LONGNVARCHAR
so the following should work?

B4X:
                      } else if(rsmd.getColumnType(i)==java.sql.Types.LONGNVARCHAR){
                          mm.Put(columnname, rs.getString(i));
rsmd = resultset metadata
mm = B4A Map to return
 

vbmundo

Well-Known Member
Licensed User
Yes, with the Keirs Control I hasn't problem to receive LongText Fields.

DonManfred, Could you consider at some point to include some Error Handler to your library? that if a SQL or Execute fails not abort or hang the APP ?

Your Lib is a Holy Grail but lacks a few things to be perfect

Thanks
 

keirS

Well-Known Member
Licensed User
Longtime User

Yes it should. Just Googled it and the MYSQL site says.


Could the bit in bold be causing you a problem?
 

vbmundo

Well-Known Member
Licensed User
Look DonManfred,

Is the best time to you to include a new Event into your Library.. an Sub MySQL_Error(Status as string) to trap any MySQL/Java error !!!

I'm waiting for your new (MySQL Longtext type) version

Regards
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…