What is the best of MySql (lib or class) TMySql, TDolphin

mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by mosh1 »

Daniel Garcia-Gil wrote: method 2

Code: Select all

    oServer:Update( "table_name",  { "account", "balance" }, { 'sobachka', 3.14 } , "account = 'dog' " )

I rebuilt library from source you send me

oServer:InsertFromDbf("table_name, "alias_name", alias->(reccount()), aFldNames )

gives me an error :

Error BASE/1102 Argument error: UPPER
=> UPPER line 0
=> (b)TDOLPHINSRV_INSERTFROMDBF line 1586
=> ASCAN line 0
=> TDOLPHINSRV:INSERTFROMDBF line 1586
=> MAIN line 59
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Daniel Garcia-Gil »

mosh1 wrote:oServer:InsertFromDbf("table_name, "alias_name", alias->(reccount()), aFldNames )
the parameters are wrong

please check testdbi.prg

method definition from Class TDolphinsrv

METHOD InsertFromDbf( cTable, cAlias, nLimit, aStruct, bOnInsert, cDuplicateKey )
/*insert new rows into an existing table from DBF file,
the table should be contain same fieldname that DBF */

cTable = table name where will be inserted
cAlias = Alias of DBF that contains the data
nLimit = total row will be inserted each time, by default is 500
aStruct = arrays with fields name, should be same name in DBF and Table, by default is DBF Fields
bOninsert = codeblock will be execute each "INSERT"
cDuplicateKey = condition on "ON DUPLICATE KEY UPDATE" in statement "INSERT" ( http://dev.mysql.com/doc/refman/5.0/en/ ... icate.html )
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: What is the best of MySql (lib or class) TMySql, TDolphin

Post by Daniel Garcia-Gil »

for more support about TDolphin you can open a new thread...
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
Post Reply