Easiest way to convert.
#1

MySQL R5 to MySQL R39? Any help appreciated.
Reply
#2

Go through the whole script and update it using the new functions/syntax's.
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
Go through the whole script and update it using the new functions/syntax's.
Is that the only way? Is there a quicker way to convert for instance:

mysql_query

to the new mysql_pquery?

Then the ones with mysql_store_result() - They need to be put into a separate function, or?

I have used MySQL R39 + and I'm very aware of it, I've never converted a script to it, though.
Reply
#4

If you want to leverage theaded query speed, then yes, there's no other way than creating proper callbacks. That isn't too hard tho, it can be even easier to do with y_inline. And there are quite a few functions to change, such as mysql_num_rows to cache_num_rows/cache_get_row_count
Reply
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
If you want to leverage theaded query speed, then yes, there's no other way than creating proper callbacks. That isn't too hard tho, it can be even easier to do with y_inline. And there are quite a few functions to change, such as mysql_num_rows to cache_num_rows/cache_get_row_count
Thank you for the heads up.

The best way to start would be to do the ones where it's "mysql_store_result" as they're the ones which use the most functions, where as "mysql_query" which don't require a callback to fetch data, such as "UPDATE XXX SET XXX=XXX WHERE XXX=XXX LIMIT 1"

They don't need a callback for it, so it'll be a simple case of converting "mysql_query" to "mysql_pquery" without any extra added sections on it, right?

Thanks for all of your help so far guys.
Reply
#6

Yup, just
pawn Код:
mysql_pquery(handle, query);
Reply
#7

Awesome mate. Thank you so much.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)