GoLang mssql_min_message_severity

request it (432)
GoLang replacement for PHP's mssql_min_message_severity [edit | history]



Do you know a GoLang replacement for PHP's mssql_min_message_severity? Write it!

PHP mssql_min_message_severity

PHP original manual for mssql_min_message_severity [ show | php.net ]

mssql_min_message_severity

(PHP 4, PHP 5, PECL odbtp >= 1.1.1)

mssql_min_message_severitySets the minimum message severity

Warning

This function was REMOVED in PHP 7.0.0.

Description

void mssql_min_message_severity ( int $severity )

Sets the minimum message severity.

Parameters

severity

The new message severity.

Return Values

No value is returned.

Examples

Example #1 mssql_min_message_severity() example

<?php
// Connect to MSSQL
mssql_connect('KALLESPC\SQLEXPRESS''sa''phpfi');

// Set the minimum message severity to 17, this
// will not show any messages issued by the underlaying
// API when we select a non-existent database below
mssql_min_message_severity(17);

// Select a non-existent database
mssql_select_db('THIS_DATABASE_DOES_NOT_EXISTS');
?>

The above example will output:

mssql_select_db(): Unable to select database:  THIS_DATABASE_DOES_NOT_EXISTS