-
-
Notifications
You must be signed in to change notification settings - Fork 594
Qt_script_int2ip
Paweł Salawa edited this page Apr 13, 2021
·
1 revision
Language: | Qt Script |
---|---|
Plugin for language: | ScriptingQt |
How to use: | Create custom SQL function. Suggested name: int2ip |
Function arguments | Keep undefined |
Function usage: | select int2ip(3232235521); |
Description: | Converts integer representation of IPv4 to the X.X.X.X representation. |
The code:
return ( (arguments[0]>>>24) +'.' + (arguments[0]>>16 & 255) +'.' + (arguments[0]>>8 & 255) +'.' + (arguments[0] & 255) );