Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Keleher
p2
Commits
d6ced6ed
Commit
d6ced6ed
authored
7 years ago
by
Peter J. Keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
3da78e5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test-example.py
+3
-3
3 additions, 3 deletions
test-example.py
with
3 additions
and
3 deletions
test-example.py
100755 → 100644
+
3
−
3
View file @
d6ced6ed
...
...
@@ -9,7 +9,7 @@ if len(sys.argv) != 2:
def
executePrint
(
s
):
cur
.
execute
(
s
)
print
cur
.
fetchall
()
print
(
cur
.
fetchall
()
)
conn
=
psycopg2
.
connect
(
"
dbname=flightsskewed user=ubuntu
"
)
cur
=
conn
.
cursor
()
...
...
@@ -19,9 +19,9 @@ os.system("python {:s} example.json".format(sys.argv[1]))
## Add a customer who doesn't exist
print
"
==== Testing first json update
"
print
(
"
==== Testing first json update
"
)
executePrint
(
"
select * from customers where customerid =
'
cust1000
'"
)
print
"
==== Testing second json update
"
print
(
"
==== Testing second json update
"
)
executePrint
(
"
select * from flewon where flightid =
'
DL108
'
and flightdate=
'
2015-09-25
'"
)
executePrint
(
"
select * from customers where customerid =
'
cust1001
'"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment