Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploaded some more tests #320

Merged
merged 8 commits into from
Mar 9, 2017
Merged

Uploaded some more tests #320

merged 8 commits into from
Mar 9, 2017

Conversation

yitam
Copy link
Contributor

@yitam yitam commented Mar 8, 2017

Extracted and simplified some tests from Test Framework

@coveralls
Copy link

Coverage Status

Coverage increased (+1.9%) to 55.038% when pulling 497797e on yitam:addNewTests into 867ca5c on Microsoft:dev.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.9%) to 55.038% when pulling a10fe30 on yitam:addNewTests into 867ca5c on Microsoft:dev.

@yitam yitam requested a review from yukiwongky March 9, 2017 16:16
$stmt->bindParam(3, $outValue, PDO::PARAM_STR, 300);
$stmt->execute();

$expected = "7";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not "7.4"?

$metadata = sqlsrv_field_metadata($stmt);
while ($result = sqlsrv_fetch($stmt))
{
for ($i = -1; $i <= $numFields; $i++)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

($i = 0; $i < $numFields; $i++) is more common

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is meant to trigger errors by submitting out-of-bound indices :)

@yukiwongky yukiwongky merged commit 5ccbda8 into microsoft:dev Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants