blob: e3a5d49b23f941027dcb870e9c7e09ec43546bd0 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001OPTIONAL
2SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01003 string * db_coldefs(int handle)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Return an array with the column names of the current table.
7 If the database didn't return a result, the result of this efun
8 is 0.
MG Mud User88f12472016-06-24 23:31:02 +02009
Zesstra715ec202025-07-09 22:18:31 +020010 The function is available only if the driver is compiled with
11 mySQL support. In that case, __MYSQL__ is defined.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 The efun triggers a privilege violation ("mysql", "db_coldefs").
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015HISTORY
16 Added in 3.2.9.
17 LDMud 3.2.11 added the privilege violation.
MG Mud User88f12472016-06-24 23:31:02 +020018
Zesstra715ec202025-07-09 22:18:31 +020019SEE ALSO
MG Mud User88f12472016-06-24 23:31:02 +020020 db_affected_rows(E), db_conv_string(E), db_close(E), db_connect(E),
21 db_exec(E), db_error(E), db_fetch(E), db_handles(E), db_insert_id(E),
22 mysql(C), privilege_violation(M)