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

DonManfred

Expert
Licensed User
Longtime User
You mean

Sub MyTask_Error( ?? )
NO!

As i wrote earlier: use the ide to get the eventsubsignature...

uN9F5yjVqK.gif
 
Last edited:

vbmundo

Well-Known Member
Licensed User
Hi Don,

I have 2 questions about Status Sub

Sub xxx_Status(Connected as boolean, ReConnecting as boolean, RetriesLeft as int)

When this SUB is executed ?

And.. what kind of code you must insert there ? I mean, what's the best practise about this SUB ?

Regards
 

DonManfred

Expert
Licensed User
Longtime User

DonManfred

Expert
Licensed User
Longtime User
but the STATUS SUB must be in every Activity
this is because of what?

** Service (starter) Create **
** Service (starter) Start **
Raising.. mysql_status
Connected to Database
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Activity_Resume()
Starter:MySQL_Status(true,false,0)
SqlException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Descriptions' in 'field list'
lib:Raising.. mysql_onsqlerror()
Starter:MySQL_onSqlError((MyMap) {ErrorCode=1054, ColumnCount=0, RecordCount=0, TaskID=test, Exception=com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'Descriptions' in 'field list'})
Starter:MySQL_QueryResult(Columns 0, Records 0,nullms,test
Starter:MySQL_QueryResult(Columns 1, Records 8,160ms,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}
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Activity_Resume()
 
Last edited:

vbmundo

Well-Known Member
Licensed User
Because I can't put the QUERYRESULT in a Service., because I need the Field values and results to fill Views. you can't reference a View or Layout or Activity from a Services.
 

vbmundo

Well-Known Member
Licensed User
get the result in the service and then call a sub in your activity (giving the result as parameter) from the qryresult sub. In the called sub you then can do the UI changes.
It's not the best practice.

Please look how MariaDB Keirs Lib works... I mean that is the best architecture..

Of course, your lib is fastest and I choice yours, but you must reconsider some changes in the structure
 

keirS

Well-Known Member
Licensed User
Longtime User
It's not the best practice.

Please look how MariaDB Keirs Lib works... I mean that is the best architecture..

Of course, your lib is fastest and I choice yours, but you must reconsider some changes in the structure

What DonMannfred describes is best practice. It's exactly what I would recommend when using my library.
 

MohammadNew

Active Member
Licensed User
Longtime User
Hello DonManFred , I used your library v 1.0.9

but give me error

' Create a NEW record based on the inputvalues
Dim qry As String
qry = "INSERT INTO tpl2 SET tpl1a1=?, imgname=?, img=?, id=?"
db.PeparedStatement(qry)
db.SetPeparedString(1,EditText1.Text)
db.SetPeparedString(2,EditText2.Text)
db.setPeparedBytes(3,buffer)
db.setPeparedInt(4,txtID.Text)
db.ExecutePeparedStatement

the error (Missing Parameter)
 
Top