Look in the emailyes... receive e mail... thanks... but what's the password?
at the present state these methods does not work;how these commands? sample code?
at the present state these methods does not work;
- i already have changed the library in the meantime to fix this; but sadly it is not tested as yet. And due to this it is not released as yet.
Will do an update in the next days and also provide an example for using prepared statements.
For now you will need to use normal queries but not prepared ones...
YesI can use the link you sent me by email ?? lifetime upgrade ??
thank's
db.Initialize("MySQL","sql2.freemysqlhosting.net","sql2105643","uZ6zY9","sql2105643")
Sub MySQL_QueryResult(data As List, meta As Map)
'Dim m As Map = meta
'Log("MySQL_QueryResult("&meta&")")
'ToastMessageShow(meta.Get("RecordCount") & " rows retrieved in " & meta.Get("ms") & " milliseconds", True)
ToastMessageShow("QUERY DONE FIND",True)
For i=0 To data.Size-1
' 'Log("r:"&data.Get(i))
'Dim COL As Map
'COL=data.Get(i)
'Log(COL.Get("id"))
'Log(COL.Get("nume"))
Next
End Sub
//BA.debugLineNum = 79;BA.debugLine="For i=0 To data.Size-1";
{
final int step26 = 1;
final int limit26 = (int) (_data.getSize()-1);
for (_i = (int) (0); (step26 > 0 && _i <= limit26) || (step26 < 0 && _i >= limit26); _i = ((int)(0 + _i + step26))) {
db.Initialize("MySQL","sql2.freemysqlhosting.net","sql2105643","uZ6zY9","sql2105643")
** Activity (main) Create, isFirst = true **
Can not connect to the MySQL Database Server. Please check your configuration.
Hostname: sql2.freemysqlhosting.net
Username: sql2105643
Error: Access denied for user 'sql2105643'@'ip-88-153-212-1.hsi04.unitymediagroup.de' (using password: YES)
Raising.. mysql_status
not Connected to Database
** Activity (main) Resume **
MySQL Database not connected!
MySQL_Status(false,false,0)
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Can you recheck your credentials please?
db.Initialize("MySQL","sql2.freemysqlhosting.net","sql2105643","uZ6*zY9*","sql2105643")
Not as feature of this lib. BU you can use byte-arrays for blobs...Is there a solution to convert the picture to byte array or encode to base64 ?
So : How do you do it , dealing with files and pictures ?
Sub MySQL_QueryResult(data As List, meta As Map)
'MySQL_QueryResult2((MyMap) {ColumnCount=3, RecordCount=5, ms=32})
Log("MySQL_QueryResult(Columns "&meta.get("ColumnCount")&", Records " _
&meta.Get("RecordCount")&","&meta.Get("ms")&"ms,"&meta.Get("TaskID"))
ToastMessageShow("MySQL retrieved "&meta.Get("RecordCount")&" records in "&meta.Get("ms")&"ms",True)
lv2.Clear
For i=0 To data.Size-1
If meta.Get("TaskID") = "Categories" Then
Dim cur As Map = data.Get(i)
Dim bmp As Bitmap
Dim In1 As InputStream
Dim buffer() As Byte
buffer = cur.Get("Picture")
In1.InitializeFromBytesArray(buffer,0,buffer.Length)
bmp.Initialize2(In1)
lv2.AddTwoLinesAndBitmap(cur.Get("Description"),cur.Get("CategoryName"),bmp)
'Log("r:"&data.Get(i))
Else If meta.Get("TaskID") = "Employees" Then
Dim cur As Map = data.Get(i)
Dim bmp As Bitmap
Dim In1 As InputStream
Dim buffer() As Byte
buffer = cur.Get("Photo")
In1.InitializeFromBytesArray(buffer,0,buffer.Length)
bmp.Initialize2(In1)
lv2.AddTwoLinesAndBitmap(cur.Get("FirstName")&" "&cur.Get("LastName"),cur.Get("Title"),bmp)
'Log("r:"&data.Get(i))
Else
'Log("r:"&data.Get(i))
End If
Next
End Sub
To write blobdata you need to use prepared statements... But there was a problem in the past... I think i fixed it but i had not the tie as yet to buid an example for it
another example: SELECT description AS My_Name FROM TABLE
db.QueryASync("select Description as My_Name from Categories;","test")
** Activity (main) Create, isFirst = true **
Raising.. mysql_status
Connected to Database
** Activity (main) Resume **
Activity_Resume()
MySQL_Status(true,false,0)
MySQL_QueryResult(Columns 1, Records 11,77ms,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}
(MyMap) {My_Name=null}
(MyMap) {My_Name=null}
(MyMap) {My_Name=null}
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
Activity_Resume()
Ok , looking forward to hearing from you ..Good luck
db.PeparedStatement("Insert into Categories SET CategoryName=?, Picture=?;")
Dim b() As Byte = Bit.InputStreamToBytes(File.OpenInput(File.DirAssets,"main.bal"))
db.SetPeparedBytes(2,b)
db.setPeparedString(1,"TEST")
db.ExecutePeparedStatement
You need a description on how to use TRUE or FALSE?
I'm sorry, I explained bad, I wanted to know what are those new parameters and how to use them ... what if I put true or false?True = YES
FALSE = NO
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?